@gemboss/ui 0.68.0 → 0.69.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/CHANGELOG.md +148 -5
  2. package/README.md +89 -9
  3. package/catalog/editor.html +10 -8
  4. package/catalog/index.html +617 -566
  5. package/gemboss-ui.css +3 -3
  6. package/package.json +5 -2
  7. package/parts/components.css +1 -1
  8. package/parts/core.css +1 -1
  9. package/parts/shell.css +1 -1
  10. package/src/assistant/attachments.tsx +486 -0
  11. package/src/assistant/chat-cards.tsx +343 -0
  12. package/src/assistant/chat.tsx +29 -6
  13. package/src/assistant/host.tsx +8 -11
  14. package/src/assistant/index.ts +8 -1
  15. package/src/assistant-chat.css +1 -1
  16. package/src/assistant-plain.js +1 -1
  17. package/src/assistant.css +1 -1
  18. package/src/auth-field.css +1 -1
  19. package/src/auth.tsx +4 -2
  20. package/src/chat-attachments.css +1 -0
  21. package/src/chat-cards.css +1 -0
  22. package/src/chat-plain.js +5 -5
  23. package/src/collections.tsx +8 -1
  24. package/src/editor/controls.tsx +51 -10
  25. package/src/editor/field-frame.tsx +4 -10
  26. package/src/editor/index.ts +2 -4
  27. package/src/editor/inspector-frame.tsx +143 -32
  28. package/src/editor/items-field.tsx +8 -3
  29. package/src/editor/items.ts +30 -6
  30. package/src/editor/panel.tsx +4 -5
  31. package/src/editor-inspector-frame.css +1 -1
  32. package/src/editor-media.css +1 -0
  33. package/src/editor-plain.js +1 -1
  34. package/src/editor-rail.css +1 -1
  35. package/src/editor.css +1 -1
  36. package/src/email-editor/editor.tsx +96 -69
  37. package/src/email-editor.css +1 -1
  38. package/src/gem-at-work.css +1 -1
  39. package/src/gem-at-work.ts +177 -33
  40. package/src/gem-holo.css +1 -1
  41. package/src/icons.tsx +42 -0
  42. package/src/index-table-extras.css +1 -0
  43. package/src/index-table.tsx +37 -16
  44. package/src/menu.tsx +7 -3
  45. package/src/narration.css +1 -1
  46. package/src/selection.tsx +22 -12
  47. package/src/editor/chips.tsx +0 -24
  48. package/src/editor-chips.css +0 -1
@@ -1 +1 @@
1
- (function(k){"use strict";var g=k.gembossUI;if(!g){k.console&&k.console.error("@gemboss/ui editor-plain.js: load kit-plain.js first (it defines gembossUI)");return}if(g.initEditorFrame)return;var C=5,j=360,w=typeof WeakSet=="function"?new WeakSet:null,u=function(t,e,r){t.dispatchEvent(new CustomEvent(e,{bubbles:!0,detail:r}))},N=function(t,e){var r=Number(t);return isFinite(r)&&r>0?r:e};function d(t){return t.querySelector(".gemboss-editor-body")}function m(t){var e=d(t);return e&&e.querySelector(":scope > .gemboss-editor-resizer")}function h(t){var e=m(t);return{min:N(e&&e.getAttribute("aria-valuemin"),300),cap:N(e&&(e.getAttribute("data-gb-max")||e.getAttribute("aria-valuemax")),680)}}function M(t){var e=h(t),r=d(t),a=r?r.getBoundingClientRect().width:0;return a>0?Math.max(e.min,Math.min(e.cap,a-j-C)):e.cap}var S=typeof WeakMap=="function"?new WeakMap:null;function P(t){var e=S?S.get(t):t._gbWant;return e??E(t)}function I(t,e){S?S.set(t,e):t._gbWant=e}function v(t,e,r,a){var i=d(t),n=m(t);if(i){var s=a??M(t),l=h(t),o=Math.round(Math.min(s,Math.max(l.min,e)));if(i.style.setProperty("--gemboss-chat-w",o+"px"),n&&(n.setAttribute("aria-valuenow",String(o)),n.setAttribute("aria-valuemax",String(s))),r){I(t,o);var f=i.getAttribute("data-gb-storage");if(f)try{localStorage.setItem(f,String(o))}catch{}u(t,"gemboss:editor-split",{width:o})}return o}}function E(t){var e=m(t);return N(e&&e.getAttribute("aria-valuenow"),384)}function H(t){var e=d(t),r=m(t);if(!(!e||!r)){r.hasAttribute("data-gb-max")||r.setAttribute("data-gb-max",r.getAttribute("aria-valuemax")||"680");var a=e.getAttribute("data-gb-storage"),i=E(t);if(a)try{var n=Number(localStorage.getItem(a));n>=h(t).min&&n<=h(t).cap&&(i=n)}catch{}I(t,i),e.classList.contains("is-chat-collapsed")||v(t,i,!1)}}function G(t,e){var r=d(t);if(r&&!(e.button!==0||e.isPrimary===!1)){e.preventDefault();var a=r.getBoundingClientRect().left,i=M(t),n=0,s=E(t);document.body.classList.add("ui-resizing");var l=function(f){s=f.clientX-a-C,n||(n=requestAnimationFrame(function(){n=0,v(t,s,!1,i)}))},o=function(){n&&cancelAnimationFrame(n),document.body.classList.remove("ui-resizing"),removeEventListener("pointermove",l),removeEventListener("pointerup",o),removeEventListener("pointercancel",o),removeEventListener("blur",o),v(t,s,!0,i)};addEventListener("pointermove",l),addEventListener("pointerup",o),addEventListener("pointercancel",o),addEventListener("blur",o)}}function V(t,e){if(!(e.altKey||e.metaKey||e.ctrlKey)){var r=e.shiftKey?64:16,a=E(t),i=h(t);if(e.key==="ArrowLeft")a-=r;else if(e.key==="ArrowRight")a+=r;else if(e.key==="Home")a=i.min;else if(e.key==="End")a=M(t);else return;e.preventDefault(),v(t,a,!0)}}function X(t,e){var r=d(t);if(r){var a=!r.classList.contains("is-chat-collapsed");r.classList.toggle("is-chat-collapsed",a),a?r.style.setProperty("--gemboss-chat-w","0px"):v(t,P(t),!1),e.classList.toggle("collapsed",a),e.setAttribute("aria-pressed",String(a)),e.setAttribute("aria-label",a?"Show chat panel":"Hide chat panel"),e.title=a?"Show chat panel":"Hide chat \u2014 full-width preview";var i=e.querySelector("rect[fill='currentColor']");i&&(i.style.display=a?"none":""),u(t,"gemboss:editor-chat",{collapsed:a})}}function J(t,e){var r=e.closest(".gemboss-pv-devices");r&&(r.querySelectorAll(".gemboss-pv-device").forEach(function(a){var i=a===e;a.classList.toggle("active",i),a.setAttribute("aria-pressed",String(i))}),u(t,"gemboss:editor-device",{device:e.getAttribute("data-device")||(e.title||"").toLowerCase()}))}function Q(t,e){var r=e.getAttribute("data-pane")||(Array.prototype.indexOf.call(e.parentNode.children,e)===0?"chat":"preview"),a=d(t);a&&(a.setAttribute("data-mobile-pane",r),e.parentNode.querySelectorAll(".gemboss-editor-mobile-tab").forEach(function(i){var n=i===e;i.classList.toggle("active",n),i.setAttribute("aria-selected",String(n))}),u(t,"gemboss:editor-pane",{pane:r}))}var c=null;function O(t){var e=t.trigger.getBoundingClientRect();t.menu.style.top=e.bottom+6+"px",t.menu.style.right=Math.max(8,innerWidth-e.right)+"px";var r=t.menu.getBoundingClientRect(),a=e.right-r.right;r.left+a<8&&(a=8-r.left),Math.abs(a)>=.5&&(t.menu.style.right=parseFloat(t.menu.style.right)-a+"px")}function y(t){var e=c;e&&(c=null,e.menu.hidden=!0,e.trigger.setAttribute("aria-expanded","false"),e.trigger.classList.remove("active"),t&&e.trigger.focus(),u(e.root,"gemboss:editor-menu",{open:!1,menu:e.menu}))}function Y(t,e){var r=e.nextElementSibling;if(!r||!r.classList.contains("gemboss-editor-menu"))return!1;var a=c&&c.trigger===e;return y(!1),a||(c={root:t,trigger:e,menu:r},r.hidden=!1,e.setAttribute("aria-expanded","true"),e.classList.add("active"),O(c),u(t,"gemboss:editor-menu",{open:!0,menu:r})),!0}var T=!1;function Z(){T||(T=!0,document.addEventListener("pointerdown",function(t){c&&!c.menu.contains(t.target)&&!c.trigger.contains(t.target)&&y(!1)}),addEventListener("keydown",function(t){t.key!=="Escape"||!c||t.isComposing||t.keyCode===229||(t.preventDefault(),t.stopImmediatePropagation(),y(!0))},!0),addEventListener("resize",function(){c&&O(c)}),addEventListener("blur",function(){y(!1)}))}function ee(t){var e=t&&t.classList&&t.classList.contains("gemboss-editor")?[t]:Array.prototype.slice.call((t||document).querySelectorAll(".gemboss-editor"));return Z(),e.forEach(function(r){if(!(w?w.has(r):r._gbEditor)){w?w.add(r):r._gbEditor=!0,H(r);var a=d(r);a&&typeof ResizeObserver=="function"&&new ResizeObserver(function(){a.classList.contains("is-chat-collapsed")||v(r,P(r),!1)}).observe(a),r.addEventListener("pointerdown",function(i){var n=i.target.closest(".gemboss-editor-resizer");n&&n===m(r)&&G(r,i)}),r.addEventListener("keydown",function(i){i.target.classList&&i.target.classList.contains("gemboss-editor-resizer")&&i.target===m(r)&&V(r,i)}),r.addEventListener("click",function(i){var n=i.target,s;if(s=n.closest(".gemboss-editor-chat-toggle"))return X(r,s);if(s=n.closest(".gemboss-pv-devices .gemboss-pv-device"))return J(r,s);if(s=n.closest(".gemboss-editor-mobile-tab"))return Q(r,s);if((s=n.closest('[aria-haspopup="menu"]'))&&Y(r,s)){i.stopPropagation();return}c&&(s=n.closest(".gemboss-editor-menu-item"))&&c.menu.contains(s)&&y(!0)})}}),e.length}g.initEditorFrame=ee;function b(t){if(!t||t!==t.trim())return null;var e=/^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.exec(t),r,a,i,n;if(e){var s=e[1].length<=4?e[1].replace(/./g,"$&$&"):e[1];return n=function(de){return parseInt(s.substr(de,2),16)},{r:n(0),g:n(2),b:n(4),a:s.length===8?Math.round(n(6)/255*1e3)/1e3:1}}if(r=/^rgba?\(\s*([^()]*?)\s*\)$/i.exec(t),!r)return null;var l=r[1].split("/");if(a=l[0].indexOf(",")>=0?l[0].split(","):l[0].trim().split(/\s+/),l.length===2&&a.push(l[1]),l.length>2||a.length<3||a.length>4)return null;var o=[];for(i=0;i<a.length;i++){var f=a[i].trim(),p=/^[+-]?(\d+\.?\d*|\.\d+)(e[+-]?\d+)?%?$/i.test(f)?parseFloat(f):f==="none"?0:NaN;if(isNaN(p))return null;/%$/.test(f)&&(p=p/100*(i<3?255:1)),o.push(i<3?Math.min(255,Math.max(0,Math.round(p))):Math.min(1,Math.max(0,p)))}return{r:o[0],g:o[1],b:o[2],a:o.length===4?o[3]:1}}function q(t){return"#"+[t.r,t.g,t.b].map(function(e){return(e<16?"0":"")+e.toString(16)}).join("")}function B(t,e,r){return r<1?"rgba("+e.r+", "+e.g+", "+e.b+", "+Math.round(r*100)/100+")":/^#/.test(t)||!t?q(e):"rgb("+e.r+", "+e.g+", "+e.b+")"}function W(t,e){var r=b(e),a=b(t);return r?B(t,r,a?a.a:1):t}function _(t,e){var r=b(t);return r&&isFinite(e)?B(t,r,Math.min(100,Math.max(0,Math.round(e)))/100):t}g.colorOf=b,g.pickSwatch=W,g.withOpacity=_;var $=function(t){var e=t.getAttribute("data-value");return e??(t.textContent||"").trim()},R=function(t){return Array.prototype.filter.call(t.children,function(e){return e.getAttribute("role")==="tab"})};function z(t,e){var r=t.parentNode,a=R(r),i=a.some(function(n){return n.hasAttribute("tabindex")});a.forEach(function(n){var s=n===t;n.setAttribute("aria-selected",String(s)),n.classList.contains("gemboss-ei-tab")&&n.classList.toggle("on",s),i&&n.setAttribute("tabindex",s?"0":"-1");var l=n.getAttribute("aria-controls"),o=l&&document.getElementById(l);o&&(o.hidden=!s)}),e&&t.focus(),u(t,"gemboss:editor-tab",{tab:$(t),index:a.indexOf(t)})}function te(t,e){if(!(e.key!=="ArrowRight"&&e.key!=="ArrowLeft")){var r=R(t);if(r.some(function(n){return n.hasAttribute("tabindex")})){var a=r.findIndex(function(n){return n.getAttribute("aria-selected")==="true"}),i=e.key==="ArrowRight"?(a+1)%r.length:(a-1+r.length)%r.length;e.preventDefault(),z(r[i],!0)}}}function re(t){var e=t.getAttribute("data-open")!=="open";t.setAttribute("data-open",e?"open":"closed"),t.setAttribute("aria-expanded",String(e));var r=t.querySelector(".gemboss-ei-chev");r&&(r.textContent=e?"\u25BE":"\u25B8"),u(t,"gemboss:editor-group",{open:e})}function ae(t){var e=t.closest(".gemboss-ei-seg");Array.prototype.forEach.call(e.querySelectorAll("button"),function(r){var a=r===t;r.classList.toggle("active",a),r.classList.toggle("on",a),r.hasAttribute("aria-pressed")&&r.setAttribute("aria-pressed",String(a))}),u(e,"gemboss:editor-seg",{value:$(t)})}var ie={text:"Text",accent:"Accent","accent-text":"Accent text",muted:"Muted",background:"Background",surface:"Surface",border:"Border",success:"Success",warning:"Warning",danger:"Danger"},ne=0;function F(t){return ie[t]||t.charAt(0).toUpperCase()+t.slice(1).replace(/-/g," ")}function se(t){var e=t.trim(),r=/^var\(\s*--gem-color-([a-z-]+)\s*\)$/i.exec(e);if(r)return"Theme color: "+F(r[1].toLowerCase())+". Type a color to use your own.";if(/^var\(/i.test(e))return"A theme value. Type a color to use your own.";var a=oe(e);return a?"A mix of "+a.replace(" + "," and ")+", half of each. Type a color to use your own.":/^color-mix\(/i.test(e)?"A mix of colors. Type a color to use your own.":"Kept as written: the swatch shows one color (hex, rgb, hsl or oklch), not a gradient or a name."}var D="(var\\([^()]*\\)|[^,()]+(?:\\([^()]*\\))?)";function oe(t){var e=new RegExp("^color-mix\\(\\s*in\\s+srgb\\s*,"+D+","+D+"\\)$","i").exec(t);function r(n){n=n.trim();var s=/^var\(\s*--gem-color-([a-z-]+)\s*\)$/i.exec(n);return s?F(s[1].toLowerCase()):b(n)||/^(hsla?|oklch)\([^()]*\)$/i.test(n)?n:null}var a=e&&r(e[1]),i=e&&r(e[2]);return a&&i?a+" + "+i:null}function A(t){var e=t.querySelector(".gemboss-ei-swatch"),r=t.querySelector("input:not([type=color]):not([data-alpha])");if(!(!e||!r)){var a=r.value,i=b(a),n=!a||!!i;if(e.tagName==="BUTTON"){var s=e.querySelector(".gemboss-ei-swatch-fill");s&&(i?s.style.setProperty("--sw","rgba("+i.r+", "+i.g+", "+i.b+", "+i.a+")"):s.style.removeProperty("--sw")),a?e.removeAttribute("data-empty"):e.setAttribute("data-empty","")}else e.value=i?q(i):"#000000";var l=t.querySelector("input[data-alpha]");i&&!l&&(l=document.createElement("input"),l.className=r.className,l.setAttribute("data-alpha",""),l.setAttribute("inputmode","numeric"),l.setAttribute("aria-label",(e.getAttribute("aria-label")||"Color swatch").replace(/ swatch$/,"")+" opacity"),(t.querySelector(".gemboss-ei-color-group")||t).appendChild(l)),l&&(l.hidden=!i,i&&(l.value=Math.round(i.a*100)+"%"),l.disabled=r.disabled),e.disabled=r.disabled||!n;var o=t.querySelector(".gemboss-ei-color-why");if(n){e.removeAttribute("title"),e.removeAttribute("aria-describedby"),o&&o.parentNode.removeChild(o);return}var f=se(a);e.title=f,o||(o=document.createElement("p"),o.className="gemboss-ei-color-why",t.appendChild(o)),o.id||(o.id="gemboss-ei-color-why-"+ ++ne),o.textContent=f,e.setAttribute("aria-describedby",o.id)}}function le(t){for(var e=t.labels||[],r=null,a=0;a<e.length&&!r;a++)r=e[a].querySelector(".gemboss-ei-rangeval");r&&(r.textContent=t.value+(r.getAttribute("data-suffix")||""))}function ue(t){var e={},r=["t","r","b","l"];return Array.prototype.forEach.call(t.querySelectorAll("input"),function(a,i){e[r[i]]=a.value.trim()}),e}function U(t){return'url("'+t.replace(/["\\]/g,"\\$&").replace(/[\u0000-\u001f\u007f]/g,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})+'")'}g.cssUrl=U;function ce(t,e){var r=t.querySelector(".gemboss-ei-img-thumb");r&&(r.style.backgroundImage=e?U(e):"",r.textContent=e?"":"\u2014")}function K(t,e){var r=t.getAttribute("data-gb-value")!=null?t.getAttribute("data-gb-value"):e.defaultValue;e.value!==r&&(t.setAttribute("data-gb-value",e.value),ce(t,e.value),u(t,"gemboss:editor-image",{value:e.value}))}var L=typeof WeakSet=="function"?new WeakSet:null,x=function(t){return t.__gbPanel?!1:(t.__gbPanel=!0,!0)};function fe(t){var e=t.closest(".gemboss-ei-color");if(e){var r=e.querySelector("input:not([type=color]):not([data-alpha])"),a=e.querySelector("input[data-gb-swatch-native]");a||(a=document.createElement("input"),a.type="color",a.setAttribute("data-gb-swatch-native",""),a.tabIndex=-1,a.setAttribute("aria-hidden","true"),a.style.cssText="position:absolute;width:1px;height:1px;opacity:0;pointer-events:none",t.parentNode.insertBefore(a,t.nextSibling));var i=r&&b(r.value);a.value=i?q(i):"#ffffff";try{a.showPicker?a.showPicker():a.click()}catch{a.click()}}}function ge(t){var e=t||document;return(L?L.has(e):e._gbPanel)?0:(L?L.add(e):e._gbPanel=!0,Array.prototype.forEach.call(e.querySelectorAll(".gemboss-ei-color"),A),e.addEventListener("click",function(r){var a=r.target,i;if(!(!a.closest||!x(r))){if(i=a.closest('.gemboss-ec-tabs > [role="tab"], .gemboss-ei-tabs > [role="tab"]'))return z(i,!1);if(i=a.closest(".gemboss-ei-gh"))return re(i);if((i=a.closest(".gemboss-ei-seg button"))&&!i.disabled)return ae(i);if((i=a.closest("button.gemboss-ei-swatch"))&&!i.disabled)return fe(i);if((i=a.closest("[data-gb-image-clear]"))&&!i.disabled){var n=i.closest(".gemboss-ei-img"),s=n&&n.querySelector(".gemboss-ei-img-ctl input");s&&(s.value="",K(n,s))}}}),e.addEventListener("keydown",function(r){var a=r.target;if(!(!a.closest||!x(r))){var i=a.closest('.gemboss-ec-tabs[role="tablist"], .gemboss-ei-tabs[role="tablist"]');if(i&&a.getAttribute("role")==="tab")return te(i,r);r.key==="Enter"&&a.tagName==="INPUT"&&a.type!=="color"&&a.type!=="range"&&a.closest(".gemboss-ei-color, .gemboss-ei-edgebox, .gemboss-ei-img")&&(r.preventDefault(),a.blur())}}),e.addEventListener("input",function(r){var a=r.target;if(!(!a.closest||!x(r))){if(a.classList.contains("gemboss-ei-range")){le(a),u(a,"gemboss:editor-range",{value:Number(a.value)});return}if(a.classList.contains("gemboss-ei-swatch")||a.hasAttribute("data-gb-swatch-native")){var i=a.closest(".gemboss-ei-color"),n=i&&i.querySelector("input:not([type=color]):not([data-alpha])"),s=n?W(n.value,a.value):a.value;n&&(n.value=s),i&&a.hasAttribute("data-gb-swatch-native")&&A(i),u(i||a,"gemboss:editor-color",{value:s})}}}),e.addEventListener("focusout",function(r){var a=r.target;if(!(!a.closest||a.tagName!=="INPUT"||!x(r))){var i;if(a.hasAttribute("data-alpha")&&(i=a.closest(".gemboss-ei-color"))){var n=i.querySelector("input:not([type=color]):not([data-alpha])"),s=Number(String(a.value).replace(/%/g,"").trim()),l=n&&String(a.value).trim()&&isFinite(s)?_(n.value,s):null;l&&l!==n.value?(n.value=l,A(i),u(i,"gemboss:editor-color",{value:l})):A(i);return}if(a.type!=="color"&&(i=a.closest(".gemboss-ei-color"))){A(i),u(i,"gemboss:editor-color",{value:a.value});return}if(i=a.closest(".gemboss-ei-edgebox")){u(i,"gemboss:editor-edges",ue(i));return}(i=a.closest(".gemboss-ei-img"))&&K(i,a)}}),1)}g.initEditorPanel=ge})(typeof globalThis<"u"?globalThis:this);
1
+ (function(k){"use strict";var g=k.gembossUI;if(!g){k.console&&k.console.error("@gemboss/ui editor-plain.js: load kit-plain.js first (it defines gembossUI)");return}if(g.initEditorFrame)return;var K=5,j=360,w=typeof WeakSet=="function"?new WeakSet:null,u=function(t,e,r){t.dispatchEvent(new CustomEvent(e,{bubbles:!0,detail:r}))},N=function(t,e){var r=Number(t);return isFinite(r)&&r>0?r:e};function d(t){return t.querySelector(".gemboss-editor-body")}function m(t){var e=d(t);return e&&e.querySelector(":scope > .gemboss-editor-resizer")}function h(t){var e=m(t);return{min:N(e&&e.getAttribute("aria-valuemin"),300),cap:N(e&&(e.getAttribute("data-gb-max")||e.getAttribute("aria-valuemax")),680)}}function M(t){var e=h(t),r=d(t),a=r?r.getBoundingClientRect().width:0;return a>0?Math.max(e.min,Math.min(e.cap,a-j-K)):e.cap}var S=typeof WeakMap=="function"?new WeakMap:null;function q(t){var e=S?S.get(t):t._gbWant;return e??E(t)}function P(t,e){S?S.set(t,e):t._gbWant=e}function v(t,e,r,a){var i=d(t),n=m(t);if(i){var s=a??M(t),l=h(t),o=Math.round(Math.min(s,Math.max(l.min,e)));if(i.style.setProperty("--gemboss-chat-w",o+"px"),n&&(n.setAttribute("aria-valuenow",String(o)),n.setAttribute("aria-valuemax",String(s))),r){P(t,o);var f=i.getAttribute("data-gb-storage");if(f)try{localStorage.setItem(f,String(o))}catch{}u(t,"gemboss:editor-split",{width:o})}return o}}function E(t){var e=m(t);return N(e&&e.getAttribute("aria-valuenow"),384)}function H(t){var e=d(t),r=m(t);if(!(!e||!r)){r.hasAttribute("data-gb-max")||r.setAttribute("data-gb-max",r.getAttribute("aria-valuemax")||"680");var a=e.getAttribute("data-gb-storage"),i=E(t);if(a)try{var n=Number(localStorage.getItem(a));n>=h(t).min&&n<=h(t).cap&&(i=n)}catch{}P(t,i),e.classList.contains("is-chat-collapsed")||v(t,i,!1)}}function G(t,e){var r=d(t);if(r&&!(e.button!==0||e.isPrimary===!1)){e.preventDefault();var a=r.firstElementChild.getBoundingClientRect().left,i=M(t),n=0,s=E(t);document.body.classList.add("ui-resizing");var l=function(f){s=f.clientX-a,n||(n=requestAnimationFrame(function(){n=0,v(t,s,!1,i)}))},o=function(){n&&cancelAnimationFrame(n),document.body.classList.remove("ui-resizing"),removeEventListener("pointermove",l),removeEventListener("pointerup",o),removeEventListener("pointercancel",o),removeEventListener("blur",o),v(t,s,!0,i)};addEventListener("pointermove",l),addEventListener("pointerup",o),addEventListener("pointercancel",o),addEventListener("blur",o)}}function V(t,e){if(!(e.altKey||e.metaKey||e.ctrlKey)){var r=e.shiftKey?64:16,a=E(t),i=h(t);if(e.key==="ArrowLeft")a-=r;else if(e.key==="ArrowRight")a+=r;else if(e.key==="Home")a=i.min;else if(e.key==="End")a=M(t);else return;e.preventDefault(),v(t,a,!0)}}function X(t,e){var r=d(t);if(r){var a=!r.classList.contains("is-chat-collapsed");r.classList.toggle("is-chat-collapsed",a),a?r.style.setProperty("--gemboss-chat-w","0px"):v(t,q(t),!1),e.classList.toggle("collapsed",a),e.setAttribute("aria-pressed",String(a)),e.setAttribute("aria-label",a?"Show chat panel":"Hide chat panel"),e.title=a?"Show chat panel":"Hide chat \u2014 full-width preview";var i=e.querySelector("rect[fill='currentColor']");i&&(i.style.display=a?"none":""),u(t,"gemboss:editor-chat",{collapsed:a})}}function J(t,e){var r=e.closest(".gemboss-pv-devices");r&&(r.querySelectorAll(".gemboss-pv-device").forEach(function(a){var i=a===e;a.classList.toggle("active",i),a.setAttribute("aria-pressed",String(i))}),u(t,"gemboss:editor-device",{device:e.getAttribute("data-device")||(e.title||"").toLowerCase()}))}function Q(t,e){var r=e.getAttribute("data-pane")||(Array.prototype.indexOf.call(e.parentNode.children,e)===0?"chat":"preview"),a=d(t);a&&(a.setAttribute("data-mobile-pane",r),e.parentNode.querySelectorAll(".gemboss-editor-mobile-tab").forEach(function(i){var n=i===e;i.classList.toggle("active",n),i.setAttribute("aria-selected",String(n))}),u(t,"gemboss:editor-pane",{pane:r}))}var c=null;function O(t){var e=t.trigger.getBoundingClientRect();t.menu.style.top=e.bottom+6+"px",t.menu.style.right=Math.max(8,innerWidth-e.right)+"px";var r=t.menu.getBoundingClientRect(),a=e.right-r.right;r.left+a<8&&(a=8-r.left),Math.abs(a)>=.5&&(t.menu.style.right=parseFloat(t.menu.style.right)-a+"px")}function y(t){var e=c;e&&(c=null,e.menu.hidden=!0,e.trigger.setAttribute("aria-expanded","false"),e.trigger.classList.remove("active"),t&&e.trigger.focus(),u(e.root,"gemboss:editor-menu",{open:!1,menu:e.menu}))}function Y(t,e){var r=e.nextElementSibling;if(!r||!r.classList.contains("gemboss-editor-menu"))return!1;var a=c&&c.trigger===e;return y(!1),a||(c={root:t,trigger:e,menu:r},r.hidden=!1,e.setAttribute("aria-expanded","true"),e.classList.add("active"),O(c),u(t,"gemboss:editor-menu",{open:!0,menu:r})),!0}var T=!1;function Z(){T||(T=!0,document.addEventListener("pointerdown",function(t){c&&!c.menu.contains(t.target)&&!c.trigger.contains(t.target)&&y(!1)}),addEventListener("keydown",function(t){t.key!=="Escape"||!c||t.isComposing||t.keyCode===229||(t.preventDefault(),t.stopImmediatePropagation(),y(!0))},!0),addEventListener("resize",function(){c&&O(c)}),addEventListener("blur",function(){y(!1)}))}function ee(t){var e=t&&t.classList&&t.classList.contains("gemboss-editor")?[t]:Array.prototype.slice.call((t||document).querySelectorAll(".gemboss-editor"));return Z(),e.forEach(function(r){if(!(w?w.has(r):r._gbEditor)){w?w.add(r):r._gbEditor=!0,H(r);var a=d(r);a&&typeof ResizeObserver=="function"&&new ResizeObserver(function(){a.classList.contains("is-chat-collapsed")||v(r,q(r),!1)}).observe(a),r.addEventListener("pointerdown",function(i){var n=i.target.closest(".gemboss-editor-resizer");n&&n===m(r)&&G(r,i)}),r.addEventListener("keydown",function(i){i.target.classList&&i.target.classList.contains("gemboss-editor-resizer")&&i.target===m(r)&&V(r,i)}),r.addEventListener("click",function(i){var n=i.target,s;if(s=n.closest(".gemboss-editor-chat-toggle"))return X(r,s);if(s=n.closest(".gemboss-pv-devices .gemboss-pv-device"))return J(r,s);if(s=n.closest(".gemboss-editor-mobile-tab"))return Q(r,s);if((s=n.closest('[aria-haspopup="menu"]'))&&Y(r,s)){i.stopPropagation();return}c&&(s=n.closest(".gemboss-editor-menu-item"))&&c.menu.contains(s)&&y(!0)})}}),e.length}g.initEditorFrame=ee;function b(t){if(!t||t!==t.trim())return null;var e=/^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.exec(t),r,a,i,n;if(e){var s=e[1].length<=4?e[1].replace(/./g,"$&$&"):e[1];return n=function(de){return parseInt(s.substr(de,2),16)},{r:n(0),g:n(2),b:n(4),a:s.length===8?Math.round(n(6)/255*1e3)/1e3:1}}if(r=/^rgba?\(\s*([^()]*?)\s*\)$/i.exec(t),!r)return null;var l=r[1].split("/");if(a=l[0].indexOf(",")>=0?l[0].split(","):l[0].trim().split(/\s+/),l.length===2&&a.push(l[1]),l.length>2||a.length<3||a.length>4)return null;var o=[];for(i=0;i<a.length;i++){var f=a[i].trim(),p=/^[+-]?(\d+\.?\d*|\.\d+)(e[+-]?\d+)?%?$/i.test(f)?parseFloat(f):f==="none"?0:NaN;if(isNaN(p))return null;/%$/.test(f)&&(p=p/100*(i<3?255:1)),o.push(i<3?Math.min(255,Math.max(0,Math.round(p))):Math.min(1,Math.max(0,p)))}return{r:o[0],g:o[1],b:o[2],a:o.length===4?o[3]:1}}function C(t){return"#"+[t.r,t.g,t.b].map(function(e){return(e<16?"0":"")+e.toString(16)}).join("")}function I(t,e,r){return r<1?"rgba("+e.r+", "+e.g+", "+e.b+", "+Math.round(r*100)/100+")":/^#/.test(t)||!t?C(e):"rgb("+e.r+", "+e.g+", "+e.b+")"}function B(t,e){var r=b(e),a=b(t);return r?I(t,r,a?a.a:1):t}function W(t,e){var r=b(t);return r&&isFinite(e)?I(t,r,Math.min(100,Math.max(0,Math.round(e)))/100):t}g.colorOf=b,g.pickSwatch=B,g.withOpacity=W;var _=function(t){var e=t.getAttribute("data-value");return e??(t.textContent||"").trim()},$=function(t){return Array.prototype.filter.call(t.children,function(e){return e.getAttribute("role")==="tab"})};function R(t,e){var r=t.parentNode,a=$(r),i=a.some(function(n){return n.hasAttribute("tabindex")});a.forEach(function(n){var s=n===t;n.setAttribute("aria-selected",String(s)),n.classList.contains("gemboss-ei-tab")&&n.classList.toggle("on",s),i&&n.setAttribute("tabindex",s?"0":"-1");var l=n.getAttribute("aria-controls"),o=l&&document.getElementById(l);o&&(o.hidden=!s)}),e&&t.focus(),u(t,"gemboss:editor-tab",{tab:_(t),index:a.indexOf(t)})}function te(t,e){if(!(e.key!=="ArrowRight"&&e.key!=="ArrowLeft")){var r=$(t);if(r.some(function(n){return n.hasAttribute("tabindex")})){var a=r.findIndex(function(n){return n.getAttribute("aria-selected")==="true"}),i=e.key==="ArrowRight"?(a+1)%r.length:(a-1+r.length)%r.length;e.preventDefault(),R(r[i],!0)}}}function re(t){var e=t.getAttribute("data-open")!=="open";t.setAttribute("data-open",e?"open":"closed"),t.setAttribute("aria-expanded",String(e));var r=t.querySelector(".gemboss-ei-chev");r&&(r.textContent=e?"\u25BE":"\u25B8"),u(t,"gemboss:editor-group",{open:e})}function ae(t){var e=t.closest(".gemboss-ei-seg");Array.prototype.forEach.call(e.querySelectorAll("button"),function(r){var a=r===t;r.classList.toggle("active",a),r.classList.toggle("on",a),r.hasAttribute("aria-pressed")&&r.setAttribute("aria-pressed",String(a))}),u(e,"gemboss:editor-seg",{value:_(t)})}var ie={text:"Text",accent:"Accent","accent-text":"Accent text",muted:"Muted",background:"Background",surface:"Surface",border:"Border",success:"Success",warning:"Warning",danger:"Danger"},ne=0;function z(t){return ie[t]||t.charAt(0).toUpperCase()+t.slice(1).replace(/-/g," ")}function se(t){var e=t.trim(),r=/^var\(\s*--gem-color-([a-z-]+)\s*\)$/i.exec(e);if(r)return"Theme color: "+z(r[1].toLowerCase())+". Type a color to use your own.";if(/^var\(/i.test(e))return"A theme value. Type a color to use your own.";var a=oe(e);return a?"A mix of "+a.replace(" + "," and ")+", half of each. Type a color to use your own.":/^color-mix\(/i.test(e)?"A mix of colors. Type a color to use your own.":"Kept as written: the swatch shows one color (hex, rgb, hsl or oklch), not a gradient or a name."}var F="(var\\([^()]*\\)|[^,()]+(?:\\([^()]*\\))?)";function oe(t){var e=new RegExp("^color-mix\\(\\s*in\\s+srgb\\s*,"+F+","+F+"\\)$","i").exec(t);function r(n){n=n.trim();var s=/^var\(\s*--gem-color-([a-z-]+)\s*\)$/i.exec(n);return s?z(s[1].toLowerCase()):b(n)||/^(hsla?|oklch)\([^()]*\)$/i.test(n)?n:null}var a=e&&r(e[1]),i=e&&r(e[2]);return a&&i?a+" + "+i:null}function A(t){var e=t.querySelector(".gemboss-ei-swatch"),r=t.querySelector("input:not([type=color]):not([data-alpha])");if(!(!e||!r)){var a=r.value,i=b(a),n=!a||!!i;if(e.tagName==="BUTTON"){var s=e.querySelector(".gemboss-ei-swatch-fill");s&&(i?s.style.setProperty("--sw","rgba("+i.r+", "+i.g+", "+i.b+", "+i.a+")"):s.style.removeProperty("--sw")),a?e.removeAttribute("data-empty"):e.setAttribute("data-empty","")}else e.value=i?C(i):"#000000";var l=t.querySelector("input[data-alpha]");i&&!l&&(l=document.createElement("input"),l.className=r.className,l.setAttribute("data-alpha",""),l.setAttribute("inputmode","numeric"),l.setAttribute("aria-label",(e.getAttribute("aria-label")||"Color swatch").replace(/ swatch$/,"")+" opacity"),(t.querySelector(".gemboss-ei-color-group")||t).appendChild(l)),l&&(l.hidden=!i,i&&(l.value=Math.round(i.a*100)+"%"),l.disabled=r.disabled),e.disabled=r.disabled||!n;var o=t.querySelector(".gemboss-ei-color-why");if(n){e.removeAttribute("title"),e.removeAttribute("aria-describedby"),o&&o.parentNode.removeChild(o);return}var f=se(a);e.title=f,o||(o=document.createElement("p"),o.className="gemboss-ei-color-why",t.appendChild(o)),o.id||(o.id="gemboss-ei-color-why-"+ ++ne),o.textContent=f,e.setAttribute("aria-describedby",o.id)}}function le(t){for(var e=t.labels||[],r=null,a=0;a<e.length&&!r;a++)r=e[a].querySelector(".gemboss-ei-rangeval");r&&(r.textContent=t.value+(r.getAttribute("data-suffix")||""))}function ue(t){var e={},r=["t","r","b","l"];return Array.prototype.forEach.call(t.querySelectorAll("input"),function(a,i){e[r[i]]=a.value.trim()}),e}function D(t){return'url("'+t.replace(/["\\]/g,"\\$&").replace(/[\u0000-\u001f\u007f]/g,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})+'")'}g.cssUrl=D;function ce(t,e){var r=t.querySelector(".gemboss-ei-img-thumb");r&&(r.style.setProperty("--gemboss-thumb",e?D(e):""),r.setAttribute("data-thumb",e?"image":"empty"),r.textContent="")}function U(t,e){var r=t.getAttribute("data-gb-value")!=null?t.getAttribute("data-gb-value"):e.defaultValue;e.value!==r&&(t.setAttribute("data-gb-value",e.value),ce(t,e.value),u(t,"gemboss:editor-image",{value:e.value}))}var L=typeof WeakSet=="function"?new WeakSet:null,x=function(t){return t.__gbPanel?!1:(t.__gbPanel=!0,!0)};function fe(t){var e=t.closest(".gemboss-ei-color");if(e){var r=e.querySelector("input:not([type=color]):not([data-alpha])"),a=e.querySelector("input[data-gb-swatch-native]");a||(a=document.createElement("input"),a.type="color",a.setAttribute("data-gb-swatch-native",""),a.tabIndex=-1,a.setAttribute("aria-hidden","true"),a.style.cssText="position:absolute;width:1px;height:1px;opacity:0;pointer-events:none",t.parentNode.insertBefore(a,t.nextSibling));var i=r&&b(r.value);a.value=i?C(i):"#ffffff";try{a.showPicker?a.showPicker():a.click()}catch{a.click()}}}function ge(t){var e=t||document;return(L?L.has(e):e._gbPanel)?0:(L?L.add(e):e._gbPanel=!0,Array.prototype.forEach.call(e.querySelectorAll(".gemboss-ei-color"),A),e.addEventListener("click",function(r){var a=r.target,i;if(!(!a.closest||!x(r))){if(i=a.closest('.gemboss-ec-tabs > [role="tab"], .gemboss-ei-tabs > [role="tab"]'))return R(i,!1);if(i=a.closest(".gemboss-ei-gh"))return re(i);if((i=a.closest(".gemboss-ei-seg button"))&&!i.disabled)return ae(i);if((i=a.closest("button.gemboss-ei-swatch"))&&!i.disabled)return fe(i);if((i=a.closest("[data-gb-image-clear]"))&&!i.disabled){var n=i.closest(".gemboss-ei-img"),s=n&&n.querySelector(".gemboss-ei-img-ctl input");s&&(s.value="",U(n,s))}}}),e.addEventListener("keydown",function(r){var a=r.target;if(!(!a.closest||!x(r))){var i=a.closest('.gemboss-ec-tabs[role="tablist"], .gemboss-ei-tabs[role="tablist"]');if(i&&a.getAttribute("role")==="tab")return te(i,r);r.key==="Enter"&&a.tagName==="INPUT"&&a.type!=="color"&&a.type!=="range"&&a.closest(".gemboss-ei-color, .gemboss-ei-edgebox, .gemboss-ei-img")&&(r.preventDefault(),a.blur())}}),e.addEventListener("input",function(r){var a=r.target;if(!(!a.closest||!x(r))){if(a.classList.contains("gemboss-ei-range")){le(a),u(a,"gemboss:editor-range",{value:Number(a.value)});return}if(a.classList.contains("gemboss-ei-swatch")||a.hasAttribute("data-gb-swatch-native")){var i=a.closest(".gemboss-ei-color"),n=i&&i.querySelector("input:not([type=color]):not([data-alpha])"),s=n?B(n.value,a.value):a.value;n&&(n.value=s),i&&a.hasAttribute("data-gb-swatch-native")&&A(i),u(i||a,"gemboss:editor-color",{value:s})}}}),e.addEventListener("focusout",function(r){var a=r.target;if(!(!a.closest||a.tagName!=="INPUT"||!x(r))){var i;if(a.hasAttribute("data-alpha")&&(i=a.closest(".gemboss-ei-color"))){var n=i.querySelector("input:not([type=color]):not([data-alpha])"),s=Number(String(a.value).replace(/%/g,"").trim()),l=n&&String(a.value).trim()&&isFinite(s)?W(n.value,s):null;l&&l!==n.value?(n.value=l,A(i),u(i,"gemboss:editor-color",{value:l})):A(i);return}if(a.type!=="color"&&(i=a.closest(".gemboss-ei-color"))){A(i),u(i,"gemboss:editor-color",{value:a.value});return}if(i=a.closest(".gemboss-ei-edgebox")){u(i,"gemboss:editor-edges",ue(i));return}(i=a.closest(".gemboss-ei-img"))&&U(i,a)}}),1)}g.initEditorPanel=ge})(typeof globalThis<"u"?globalThis:this);
@@ -1 +1 @@
1
- .gemboss-editor-rail-foot{display:none}@media (min-width:761px){.gemboss-pageedit.gemboss-pageedit--rail,.gemboss-pageedit--rail .gemboss-layers{left:56px}body:not(.gemboss-editor-rail) .gemboss-pageedit--rail{box-shadow:-1px 0 0 var(--gemboss-divider),-56px 0 0 var(--gemboss-nav-bg)}body.gemboss-editor-rail nav.icon-nav{display:flex!important;top:0;height:100dvh;width:56px;padding-top:6px;z-index:310}body.gemboss-editor-rail nav.icon-nav:focus-within,body.gemboss-editor-rail.gemboss-editor-rail-open nav.icon-nav{z-index:330}body.gemboss-editor-rail .icon-nav>.gnav-bottom{padding-bottom:0}body.gemboss-editor-rail .gemboss-editor-rail-foot{display:block;padding:0 12px 12px}body.gemboss-editor-rail:not(.gemboss-editor-rail-open) .icon-nav{border-right:0;box-shadow:inset -1px 0 0 var(--gemboss-divider)}body.gemboss-editor-rail:not(.gemboss-editor-rail-open) .icon-nav :is(.gnav-scroll,.gnav-bottom,.gemboss-editor-rail-foot){padding-inline:12px}body.gemboss-editor-rail:not(.gemboss-editor-rail-open) .icon-nav .gnav-item{position:relative;justify-content:center;gap:0;padding:6px}body.gemboss-editor-rail:not(.gemboss-editor-rail-open) .icon-nav .gnav-sub{display:none}body.gemboss-editor-rail:not(.gemboss-editor-rail-open) .icon-nav .gnav-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}body.gemboss-editor-rail:not(.gemboss-editor-rail-open) .icon-nav .gnav-item:focus-visible .gnav-label{position:fixed;left:64px;width:auto;height:auto;overflow:visible;clip-path:none;padding:4px 8px;border-radius:var(--gemboss-radius-md);background:var(--gemboss-text);color:var(--gemboss-surface);font-size:var(--gemboss-fs-caption);pointer-events:none}body.gemboss-editor-rail:not(.gemboss-editor-rail-open) .icon-nav .gnav-item>:not(.gnav-ico,.gnav-label){position:absolute;top:2px;right:0}body.gemboss-editor-rail:not(.gemboss-editor-rail-open) .icon-nav .gnav-scroll{scrollbar-width:none;background:linear-gradient(var(--gemboss-nav-bg) 30%,transparent) 0 0/ calc(100% - 1px) 24px no-repeat local,linear-gradient(transparent,var(--gemboss-nav-bg) 70%) 0 100%/ calc(100% - 1px) 24px no-repeat local,radial-gradient(farthest-side at 50% 0,rgba(31,30,29,.22),transparent) 0 0/ calc(100% - 1px) 8px no-repeat scroll,radial-gradient(farthest-side at 50% 100%,rgba(31,30,29,.22),transparent) 0 100%/ calc(100% - 1px) 8px no-repeat scroll}body.gemboss-editor-rail.gemboss-editor-rail-open nav.icon-nav{width:240px;box-shadow:2px 0 26px #1f1e1d33}@media (min-width:1001px) and (max-width:1056px){.gemboss-pageedit--rail .gemboss-editor-body{flex-direction:column;gap:var(--gemboss-editor-inset)}.gemboss-pageedit--rail .gemboss-editor-resizer{display:none}.gemboss-pageedit--rail .gemboss-editor-body.is-chat-collapsed .gemboss-ec{max-height:0;min-height:0}.gemboss-pageedit--rail .gemboss-editor-body>.gemboss-ec{width:auto;flex:0 0 auto;height:44%;min-height:min(520px,76%);max-height:76%}}@media (min-width:1201px) and (max-width:1256px){.gemboss-pageedit--rail .gemboss-pageedit-scope{display:none}}}@media (min-width:761px) and (pointer:coarse),(min-width:761px) and (max-width:47.9975em){body.gemboss-editor-rail:not(.gemboss-editor-rail-open) .icon-nav :is(.gnav-scroll,.gnav-bottom,.gemboss-editor-rail-foot){padding-inline:6px}body.gemboss-editor-rail:not(.gemboss-editor-rail-open) .icon-nav .gnav-item{padding:12px}}
1
+ .gemboss-editor-rail-foot{display:none}@media (min-width:761px){.gemboss-pageedit.gemboss-pageedit--rail,.gemboss-pageedit--rail .gemboss-layers{left:56px}body:not(.gemboss-editor-rail) .gemboss-pageedit--rail{box-shadow:-1px 0 0 var(--gemboss-divider),-56px 0 0 var(--gemboss-nav-bg)}body.gemboss-editor-rail nav.icon-nav{display:flex!important;top:0;height:100dvh;width:56px;padding-top:6px;z-index:310}body.gemboss-editor-rail nav.icon-nav:focus-within,body.gemboss-editor-rail.gemboss-editor-rail-open nav.icon-nav{z-index:330}body.gemboss-editor-rail .icon-nav>.gnav-bottom{padding-bottom:0}body.gemboss-editor-rail .gemboss-editor-rail-foot{display:block;padding:0 12px 12px}body.gemboss-editor-rail:not(.gemboss-editor-rail-open) .icon-nav{border-right:0;box-shadow:inset -1px 0 0 var(--gemboss-divider)}body.gemboss-editor-rail:not(.gemboss-editor-rail-open) .icon-nav :is(.gnav-scroll,.gnav-bottom,.gemboss-editor-rail-foot){padding-inline:12px}body.gemboss-editor-rail:not(.gemboss-editor-rail-open) .icon-nav .gnav-item{position:relative;justify-content:center;gap:0;padding:6px}body.gemboss-editor-rail:not(.gemboss-editor-rail-open) .icon-nav .gnav-sub{display:none}body.gemboss-editor-rail:not(.gemboss-editor-rail-open) .icon-nav .gnav-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}body.gemboss-editor-rail:not(.gemboss-editor-rail-open) .icon-nav .gnav-item:focus-visible .gnav-label{position:fixed;left:64px;width:auto;height:auto;overflow:visible;clip-path:none;padding:4px 8px;border-radius:var(--gemboss-radius-md);background:var(--gemboss-text);color:var(--gemboss-surface);font-size:var(--gemboss-fs-caption);pointer-events:none}body.gemboss-editor-rail:not(.gemboss-editor-rail-open) .icon-nav .gnav-item>:not(.gnav-ico,.gnav-label){position:absolute;top:2px;right:0}body.gemboss-editor-rail:not(.gemboss-editor-rail-open) .icon-nav .gnav-scroll{scrollbar-width:none;background:linear-gradient(var(--gemboss-nav-bg) 30%,transparent) 0 0/ calc(100% - 1px) 24px no-repeat local,linear-gradient(transparent,var(--gemboss-nav-bg) 70%) 0 100%/ calc(100% - 1px) 24px no-repeat local,radial-gradient(farthest-side at 50% 0,rgba(31,30,29,.22),transparent) 0 0/ calc(100% - 1px) 8px no-repeat scroll,radial-gradient(farthest-side at 50% 100%,rgba(31,30,29,.22),transparent) 0 100%/ calc(100% - 1px) 8px no-repeat scroll}body.gemboss-editor-rail.gemboss-editor-rail-open nav.icon-nav{width:240px;box-shadow:2px 0 26px #1f1e1d33}@media (min-width:1001px) and (max-width:1056px){.gemboss-pageedit--rail .gemboss-editor-body{flex-direction:column;gap:0}.gemboss-pageedit--rail .gemboss-editor-body>.gemboss-ec{border-right:0;border-bottom:1px solid var(--gemboss-divider)}.gemboss-pageedit--rail .gemboss-editor-resizer{display:none}.gemboss-pageedit--rail .gemboss-editor-body.is-chat-collapsed .gemboss-ec{max-height:0;min-height:0}.gemboss-pageedit--rail .gemboss-editor-body>.gemboss-ec{width:auto;flex:0 0 auto;height:44%;min-height:min(520px,76%);max-height:76%}}@media (min-width:1201px) and (max-width:1256px){.gemboss-pageedit--rail .gemboss-pageedit-scope{display:none}}}@media (min-width:761px) and (pointer:coarse),(min-width:761px) and (max-width:47.9975em){body.gemboss-editor-rail:not(.gemboss-editor-rail-open) .icon-nav :is(.gnav-scroll,.gnav-bottom,.gemboss-editor-rail-foot){padding-inline:6px}body.gemboss-editor-rail:not(.gemboss-editor-rail-open) .icon-nav .gnav-item{padding:12px}}
package/src/editor.css CHANGED
@@ -1 +1 @@
1
- @keyframes gemboss-editor-enter{0%{opacity:0}to{opacity:1}}@keyframes gemboss-editor-toast-in{0%{opacity:0;transform:translate(-50%,-8px)}to{opacity:1;transform:translate(-50%)}}@keyframes gemboss-flyout-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}@keyframes gemboss-statusbar-in{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}.gemboss-platform-main:has(.gemboss-editor){box-sizing:border-box;height:100dvh;min-height:0;padding-top:0;padding-bottom:0;overflow:clip}.gemboss-editor{--gemboss-editor-inset: 5px;position:fixed;inset:0;box-sizing:border-box;display:flex;flex-direction:column;background:var(--gemboss-canvas);overflow:hidden;z-index:400;animation:gemboss-editor-enter .26s cubic-bezier(.16,1,.3,1)}@media (prefers-reduced-motion: reduce){.gemboss-editor{animation:none}}.gemboss-editor--embedded{position:relative;inset:auto;height:100%;min-height:0;z-index:auto;animation:none}.gemboss-editor-toast{position:absolute;top:62px;left:50%;transform:translate(-50%);z-index:500;display:flex;align-items:center;gap:12px;max-width:min(560px,92vw);padding:12px 12px 12px 16px;background:var(--gemboss-text);color:#fff;border-radius:12px;font-size:13px;line-height:1.4;box-shadow:var(--gemboss-shadow-overlay);animation:gemboss-editor-toast-in .24s cubic-bezier(.16,1,.3,1)}.gemboss-editor-toast strong{font-weight:600}.gemboss-editor-toast button{flex:0 0 auto;border:0;background:#ffffff29;color:#fff;width:22px;height:22px;border-radius:8px;cursor:pointer;font-size:12px;line-height:1;transition:background var(--gemboss-transition-fast) ease}.gemboss-editor-toast button:hover{background:#ffffff47}.gemboss-editor-toast button:focus-visible{outline:2px solid #fff;outline-offset:2px}@media (prefers-reduced-motion: reduce){.gemboss-editor-toast{animation:none}}.gemboss-editor-topbar{flex:0 0 auto;height:var(--gemboss-editor-topbar-h, 52px);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;padding:0 16px;background:var(--gemboss-surface);border-bottom:1px solid var(--gemboss-divider)}@media (min-width: 1001px){.gemboss-editor-topbar--theme{grid-template-columns:auto auto auto;justify-content:space-between}.gemboss-editor-topbar.gemboss-pageedit-top{grid-template-columns:auto fit-content(100%) auto}}.gemboss-editor-tb-left{display:flex;align-items:center;gap:12px;min-width:0}.gemboss-editor-tb-center{display:flex;align-items:center;gap:12px;justify-self:center}.gemboss-editor-topbar--theme .gemboss-editor-tb-center,.gemboss-editor-topbar.gemboss-pageedit-top .gemboss-editor-tb-center{min-width:0}.gemboss-editor-topbar.gemboss-pageedit-top .gemboss-pageedit-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width: 1200px){.gemboss-editor-topbar.gemboss-pageedit-top .gemboss-editor-tb-name,.gemboss-editor-topbar.gemboss-pageedit-top .gemboss-sec-type{display:none}}.gemboss-editor-tb-right{display:flex;align-items:center;gap:16px;min-width:0;justify-self:end}.gemboss-editor-back{border:0;background:transparent;padding:0;font-family:inherit;font-size:18px;line-height:1;color:var(--gemboss-text);text-decoration:none;cursor:pointer;width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--gemboss-radius-md);transition:background var(--gemboss-transition-fast) ease,color var(--gemboss-transition-fast) ease}.gemboss-editor-back:hover{background:var(--gemboss-hover)}.gemboss-editor-back:active{background:var(--gemboss-active-bg);color:var(--gemboss-active-fg)}.gemboss-editor-back:focus-visible{outline:2px solid var(--ui-focus, currentColor);outline-offset:2px}.gemboss-editor-tb-name{font-family:var(--gemboss-serif);font-size:15px;font-weight:600}.gemboss-editor-savestate{display:inline-flex;align-items:center;gap:6px;font-size:var(--gemboss-fs-micro);font-weight:500;line-height:1;padding:4px 8px;border-radius:var(--gemboss-radius-full);white-space:nowrap;transition:opacity .2s ease}.gemboss-editor-savestate.is-idle,.gemboss-editor-savestate.is-saving{color:var(--gemboss-text-muted)}.gemboss-editor-savestate.is-saved{color:var(--gemboss-success-strong);background:var(--gemboss-success-soft)}.gemboss-editor-savestate .gemboss-narr-spin{width:10px;height:10px;border-width:1.5px;border-color:var(--gemboss-divider);border-top-color:currentColor}@media (max-width: 760px){.gemboss-editor-savestate.is-saved{display:none}}.gemboss-editor-tb-ghost{font-size:13px;color:var(--gemboss-text);text-decoration:none;padding:8px 12px;border:1px solid var(--gemboss-divider);border-radius:8px;white-space:nowrap;cursor:pointer;background:var(--gemboss-surface);transition:border-color var(--gemboss-transition-fast) ease,color var(--gemboss-transition-fast) ease,background var(--gemboss-transition-fast) ease}.gemboss-editor-tb-ghost:hover{border-color:var(--gemboss-primary)}.gemboss-editor-tb-ghost:active{background:var(--gemboss-active-bg);border-color:var(--gemboss-primary);color:var(--gemboss-active-fg)}.gemboss-editor-tb-ghost:focus-visible{outline:2px solid var(--ui-focus, currentColor);outline-offset:2px}.gemboss-editor-tb-ghost:disabled{opacity:.5;cursor:default;border-color:var(--gemboss-divider);color:var(--gemboss-text-muted)}.gemboss-editor-tb-publish{background:var(--gemboss-primary);color:#fff;border:0;border-radius:8px;box-sizing:border-box;height:var(--ui-btn-h, 28px);padding:0 12px;font-size:12px;font-weight:550;line-height:16px;cursor:pointer;white-space:nowrap;transition:background var(--gemboss-transition-fast) ease,filter var(--gemboss-transition-fast) ease}.gemboss-editor-tb-publish:hover{background:var(--gemboss-primary-dark)}.gemboss-editor-tb-publish:active{background:var(--gemboss-primary-dark);filter:brightness(.94)}.gemboss-editor-tb-publish:focus-visible{outline:2px solid var(--ui-focus, currentColor);outline-offset:2px}.gemboss-editor-tb-publish:disabled{opacity:.5;cursor:default;filter:none}.gemboss-editor-tb-undo{font-size:15px}.gemboss-editor-publish{position:relative;display:inline-flex;align-items:stretch}.gemboss-editor-publish-main{border-radius:8px 0 0 8px}.gemboss-editor-publish-caret{border-radius:0 8px 8px 0;padding:0 8px;font-size:12px;line-height:1;border-left:1px solid color-mix(in srgb,#fff 24%,transparent);display:inline-flex;align-items:center;justify-content:center}.gemboss-editor-publish-caret.active{filter:brightness(.94)}.gemboss-editor-menu-label{padding:6px 6px 2px;font-size:11px;font-weight:600;letter-spacing:.02em;color:var(--gemboss-text-muted);white-space:nowrap}.gemboss-editor-overflow{position:relative;display:inline-flex}.gemboss-editor-overflow-trigger{font-size:18px;line-height:1}.gemboss-editor-menu{position:fixed;z-index:500;min-width:210px;max-height:calc(100vh - 16px);overflow-y:auto;padding:6px;animation:gemboss-flyout-in var(--gemboss-transition-fast) ease}@media (prefers-reduced-motion: reduce){.gemboss-editor-menu{animation:none}}.gemboss-editor-menu-item{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:32px;padding:4px 6px;border:0;border-radius:var(--gemboss-radius-md);background:transparent;font:inherit;font-size:13px;color:var(--gemboss-text);text-align:left;text-decoration:none;white-space:nowrap;cursor:pointer;transition:background var(--gemboss-transition-fast) ease,color var(--gemboss-transition-fast) ease}@media (pointer: coarse),(max-width:47.9975em){.gemboss-editor-menu-item{min-height:44px;padding:8px 12px}.gemboss-editor-menu-label{padding:6px 12px 2px}}.gemboss-editor-menu-item:hover{background:var(--gemboss-hover)}.gemboss-editor-menu-item:focus-visible{outline:2px solid var(--ui-focus, currentColor);outline-offset:-2px;background:var(--gemboss-hover)}.gemboss-editor-menu-item:disabled{opacity:.45;cursor:default}.gemboss-editor-menu-item:disabled:hover{background:transparent}.gemboss-editor-menu-item[aria-disabled=true]{color:var(--gemboss-text-muted);cursor:default}.gemboss-editor-menu-item[aria-disabled=true]:hover{background:transparent}.gemboss-editor-menu-why{display:block;font-size:12px;line-height:16px;color:var(--gemboss-text-muted)}.gemboss-editor-menu-icon{display:inline-flex;flex:none;width:16px;height:16px;color:var(--gemboss-text-muted)}.gemboss-editor-menu-item.active{color:var(--gemboss-active-fg)}.gemboss-editor-menu-ext{color:var(--gemboss-text-muted)}.gemboss-editor-menu-check{color:var(--gemboss-active-fg);font-weight:600}.gemboss-editor-menu-val{font-size:11px;color:var(--gemboss-text-muted);border:1px solid var(--gemboss-divider);border-radius:var(--gemboss-radius-sm);padding:1px 8px}.gemboss-editor-menu-sep{height:1px;background:var(--gemboss-divider-soft);margin:6px}.gemboss-editor-body{flex:1;min-height:0;display:flex;gap:0;padding:var(--gemboss-editor-inset);box-sizing:border-box}.gemboss-editor-body>.gemboss-ec,.gemboss-editor-body>.gemboss-editor-preview-pane{border:1px solid var(--gemboss-divider);border-radius:16px;overflow:hidden}.gemboss-editor-body>.gemboss-ec{border-right:1px solid var(--gemboss-divider)}.gemboss-ec-tabs{display:flex;gap:var(--ui-space-1);padding:var(--ui-space-2) var(--gemboss-ec-inset, 12px);border-bottom:1px solid var(--gemboss-divider);flex:none;overflow-x:auto;scrollbar-width:thin;overscroll-behavior-x:contain}.gemboss-ec-tabs>[role=tab]{flex:1 1 0;min-width:max-content;white-space:nowrap;font:inherit;font-size:13px;font-weight:600;line-height:16px;cursor:pointer;box-sizing:border-box;min-height:32px;padding:0 var(--ui-space-3);border-radius:8px;display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid transparent;background:transparent;color:var(--gemboss-text-muted);box-shadow:none}.gemboss-ec-tabs>[role=tab]:hover:not([aria-selected=true]){color:var(--gemboss-text);background:var(--gemboss-primary-soft)}.gemboss-ei-tab:not(.on):hover{color:var(--gemboss-text);background:var(--gemboss-divider)}.gemboss-ec-tabs>[role=tab]:focus-visible{outline:2px solid var(--ui-focus, currentColor);outline-offset:-2px}.gemboss-ec-tabs>[role=tab][aria-selected=true]{border-color:var(--gemboss-divider);background:var(--gemboss-surface);color:var(--gemboss-text);box-shadow:inset 0 -2px 0 var(--gemboss-primary)}@media (max-width:47.9975em){.gemboss-ec-tabs>[role=tab]{min-height:44px}}.gemboss-pv{flex:1;min-width:0;display:flex;flex-direction:column;background:var(--gemboss-preview-canvas);overflow:hidden}.ui-seg.gemboss-pv-devices>button.gemboss-pv-device{width:calc(var(--ui-btn-h) - 2px);height:calc(var(--ui-btn-h) - 2px);border:0;border-radius:0}@media (pointer: coarse),(max-width:47.9975em){.ui-seg.gemboss-pv-devices>button.gemboss-pv-device{width:44px;height:44px}}.gemboss-pv-device{border:1px solid var(--gemboss-divider);background:var(--gemboss-surface);cursor:pointer;width:28px;height:28px;border-radius:8px;color:var(--gemboss-text-muted);font-size:14px;display:inline-flex;align-items:center;justify-content:center;line-height:1;transition:border-color var(--gemboss-transition-fast) ease,color var(--gemboss-transition-fast) ease,background var(--gemboss-transition-fast) ease}.gemboss-pv-device svg{display:block}.gemboss-editor-tb-tools{display:flex;align-items:center;gap:16px;min-width:0}@media (max-width: 1200px){.gemboss-editor-tb-tools{display:none}}.gemboss-pv-device:hover{border-color:var(--gemboss-primary);color:var(--gemboss-active-fg)}.gemboss-pv-device:focus-visible{outline:2px solid var(--ui-focus, currentColor);outline-offset:2px}.gemboss-pv-device.active{border-color:var(--gemboss-primary);color:var(--gemboss-active-fg);background:var(--gemboss-active-bg)}.gemboss-pagepicker{position:relative;display:inline-flex}.gemboss-pagepicker>.gemboss-pagepicker-trigger{width:auto;max-width:220px;font-size:13px;font-weight:600}.gemboss-pagepicker-trigger .gemboss-ei-pickbtn-pic{color:var(--gemboss-text-muted)}.gemboss-pagepicker-trigger .gemboss-ei-pickbtn-pic svg{width:18px;height:18px}.gemboss-pagepicker-note{margin:0;padding:8px 12px 12px;font-size:12px;line-height:1.5;color:var(--gemboss-text-muted);border-bottom:1px solid var(--gemboss-divider)}.gemboss-pagepicker-note-link{color:var(--gemboss-primary);font-weight:600;text-decoration:none}.gemboss-pagepicker-note-link:hover{text-decoration:underline}.gemboss-pv-stage{flex:1;min-height:0;overflow:hidden;display:flex;justify-content:center;padding:0}.gemboss-pv-frame{background:var(--gemboss-surface);overflow:hidden;height:100%;position:relative}.gemboss-pv-frame.desktop{width:100%;max-width:none}.gemboss-pv-frame.gemboss-pv-fit.desktop{position:absolute;top:0;left:0;width:var(--gemboss-pv-w, 100%);height:var(--gemboss-pv-h, 100%);transform:scale(calc(var(--gemboss-pv-scale, 1) * var(--gemboss-pv-user-zoom, 1)));transform-origin:top left}.gemboss-pv-frame.mobile{box-sizing:border-box;width:392px;flex:0 0 392px;align-self:center;margin:16px 0;border:1px solid var(--gemboss-divider);border-radius:20px;box-shadow:var(--gemboss-shadow-overlay)}.gemboss-pv-frame.tablet{box-sizing:border-box;width:770px;flex:0 0 770px;align-self:center;margin:16px 0;border:1px solid var(--gemboss-divider);border-radius:16px;box-shadow:var(--gemboss-shadow-overlay)}.gemboss-pv-iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;background:var(--gemboss-surface);transition:opacity .18s ease}.gemboss-pv-empty{margin:auto;text-align:center;max-width:340px;display:flex;flex-direction:column;align-items:center;gap:8px}.gemboss-pv-empty-art{font-size:40px;line-height:1;opacity:.7}.gemboss-pv-empty-title{font-family:var(--gemboss-serif);font-size:18px;margin:0}.gemboss-pv-empty-sub{font-size:13px;color:var(--gemboss-text-muted);margin:0;line-height:1.5}.gemboss-pv-empty-cta{margin-top:6px;font-size:13px;font-weight:600;color:var(--gemboss-active-fg);text-decoration:none}.gemboss-pv-empty-cta:hover{text-decoration:underline}.gemboss-pv-spin{width:22px;height:22px;border:2px solid var(--gemboss-divider-soft);border-top-color:var(--gemboss-primary);border-radius:50%;animation:gemboss-spin .7s linear infinite}.gemboss-editor-resizer{flex:0 0 var(--gemboss-editor-inset);align-self:stretch}body.ui-resizing .gemboss-pv-iframe{pointer-events:none}.gemboss-editor-chat-toggle{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--gemboss-divider);background:var(--gemboss-surface);border-radius:var(--gemboss-radius-md);cursor:pointer;font-size:14px;line-height:1;color:var(--gemboss-text-muted);transition:border-color var(--gemboss-transition-fast) ease,color var(--gemboss-transition-fast) ease}.gemboss-editor-chat-toggle:hover{border-color:var(--gemboss-primary);color:var(--gemboss-active-fg)}.gemboss-editor-chat-toggle:focus-visible{outline:2px solid var(--ui-focus, currentColor);outline-offset:2px}.gemboss-editor-chat-toggle.collapsed{border-color:var(--gemboss-primary);color:var(--gemboss-active-fg)}.gemboss-editor-chat-toggle svg{display:block}.gemboss-editor-body .gemboss-ec{transition:flex-basis .28s cubic-bezier(.16,1,.3,1),width .28s cubic-bezier(.16,1,.3,1)}body.ui-resizing .gemboss-editor-body .gemboss-ec{transition:none;will-change:flex-basis,width}body.ui-resizing .gemboss-editor-body .gemboss-pv{will-change:flex-basis}.gemboss-editor-body.is-chat-collapsed .gemboss-ec{border-width:0;overflow:hidden}.gemboss-editor-body.is-chat-collapsed>.gemboss-ec{visibility:hidden}.gemboss-editor-body.is-chat-collapsed .gemboss-editor-resizer{display:none}@media (max-width: 1000px){.gemboss-editor-body{flex-direction:column;gap:var(--gemboss-editor-inset)}}@media (max-width: 1000px){.gemboss-editor-resizer{display:none}.gemboss-editor-body.is-chat-collapsed .gemboss-ec{max-height:0;min-height:0}.gemboss-editor-topbar{height:auto;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"left right" "center center";gap:8px 12px;padding:8px 12px}.gemboss-editor-tb-left{grid-area:left}.gemboss-editor-tb-right{padding-block:6px;grid-area:right;min-width:0;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}.gemboss-editor-tb-center{grid-area:center;justify-self:stretch;justify-content:flex-start;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}.gemboss-editor-tb-right::-webkit-scrollbar,.gemboss-editor-tb-center::-webkit-scrollbar{display:none}.gemboss-editor-tb-right>*{flex:0 0 auto}.gemboss-editor-tb-right>.gemboss-editor-tb-publish{position:sticky;right:0;z-index:1;box-shadow:-8px 0 8px -6px color-mix(in srgb,var(--gemboss-text) 18%,transparent)}.gemboss-editor-tb-name{display:none}.gemboss-editor-tb-ghost{padding:6px 12px;font-size:12px}.gemboss-editor-tb-publish{padding:8px 16px;font-size:13px}}.gemboss-editor-topbar:has(>.gemboss-editor-tb-center:empty) .gemboss-editor-tb-name{display:block;flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width: 1000px){.gemboss-editor-topbar:has(>.gemboss-editor-tb-center:empty){grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"left right"}.gemboss-editor-topbar:has(>.gemboss-editor-tb-center:empty)>.gemboss-editor-tb-center{display:none}.gemboss-editor-topbar:has(>.gemboss-editor-tb-center:empty)>.gemboss-editor-tb-left{width:auto;flex-wrap:nowrap;overflow:hidden}.gemboss-editor-topbar:has(>.gemboss-editor-tb-center:empty)>.gemboss-editor-tb-right{justify-self:end;justify-content:flex-end}}@media (max-width: 640px){.gemboss-pv-frame.mobile{width:100%;max-width:392px;flex:0 1 auto;margin:8px 0}.gemboss-pv-frame.tablet{width:100%;max-width:770px;flex:0 1 auto;margin:8px 0}}.gemboss-editor-preview-pane{display:flex}.gemboss-editor-mobile-tabs{display:none}.gemboss-editor-dock{position:absolute;top:0;right:0;bottom:0;width:320px;max-width:90%;z-index:5;overflow-y:auto;background:var(--gemboss-surface);border-left:1px solid var(--gemboss-divider);box-shadow:var(--gemboss-shadow-overlay)}.gemboss-editor-preview-pane:has(>.gemboss-editor-dock){position:relative}:where(.gemboss-editor-body>.gemboss-ec){position:relative;width:var(--gemboss-chat-w, 384px);flex:0 0 var(--gemboss-chat-w, 384px);display:flex;flex-direction:column;background:var(--gemboss-panel-bg);border-right:1px solid var(--gemboss-divider);overflow:hidden}:where(.gemboss-editor-preview-pane){flex:1;min-width:0}@media (max-width: 1000px){:where(.gemboss-editor-body>.gemboss-ec){width:auto;flex:0 0 auto;max-height:48%}}@media (max-width: 760px){.gemboss-editor-resizer{display:none}.gemboss-editor-body .gemboss-ec{flex:1 1 auto;width:100%;min-width:0;max-height:none;border-right:none}.gemboss-editor-body .gemboss-editor-preview-pane{flex:1 1 auto}.gemboss-editor-body[data-mobile-pane=chat] .gemboss-editor-preview-pane,.gemboss-editor-body[data-mobile-pane=preview] .gemboss-ec{display:none}.gemboss-editor-mobile-tabs{display:flex;flex:0 0 auto;gap:6px;padding:6px;padding-bottom:calc(6px + env(safe-area-inset-bottom));background:var(--gemboss-surface);border-top:1px solid var(--gemboss-divider)}.gemboss-editor-mobile-tab{flex:1 1 0;height:44px;border:0;border-radius:8px;background:transparent;color:var(--gemboss-text-muted);font:inherit;font-size:13px;font-weight:600;cursor:pointer}.gemboss-editor-mobile-tab.active{background:var(--gemboss-active-bg);color:var(--gemboss-active-fg)}}.gemboss-editor-statusbar{position:absolute;top:60px;right:14px;z-index:480;max-width:min(380px,calc(100vw - 28px));padding:8px 16px;font-size:12px;line-height:1.4;color:var(--gemboss-text-muted);background:var(--gemboss-surface);border:1px solid var(--gemboss-divider);border-radius:12px;box-shadow:var(--gemboss-shadow-raised);pointer-events:none;animation:gemboss-statusbar-in .18s cubic-bezier(.16,1,.3,1) both}.gemboss-editor-statusbar.done{background:#eaf6ef;color:#1f7a4d;border-color:var(--gemboss-success-border)}.gemboss-editor-statusbar.error{background:#fdecea;color:var(--gemboss-danger);border-color:#f3c2bb}@media (pointer: coarse),(max-width:47.9975em){.gemboss-pv-device{width:44px;height:44px;font-size:16px}}@media (pointer: coarse),(max-width:47.9975em){.gemboss-editor-back{width:44px;height:44px;font-size:20px}.gemboss-editor-chat-toggle{width:44px;height:44px;font-size:16px}}@media (pointer: coarse),(max-width:47.9975em){.gemboss-editor-tb-ghost{padding:8px 16px;min-height:44px}.gemboss-editor-tb-publish{padding:12px 20px;min-height:44px}.gemboss-pagepicker-trigger{min-height:44px}}@media (pointer: coarse){.gemboss-ec-tab{min-height:44px}}@media (max-width: 760px){.gemboss-editor-chat-toggle{display:none}}.gemboss-pageedit{position:fixed;inset:0;display:flex;flex-direction:column;background:var(--gemboss-panel-bg,#ffffff);z-index:320}.gemboss-pageedit-top{background:#fff;border-bottom:1px solid var(--gemboss-divider,#e5e7ea)}.gemboss-pageedit .gemboss-editor-tb-center{display:flex;align-items:center;gap:12px;justify-content:center}.gemboss-pageedit .gemboss-editor-tb-right{display:flex;align-items:center;gap:12px;min-width:0}.gemboss-pageedit .gemboss-editor-tb-right>:first-child{margin-inline-start:auto}.gemboss-pageedit .gemboss-editor-tb-left{--gemboss-tb-gap:12px;display:flex;align-items:center;gap:var(--gemboss-tb-gap);min-width:0}.gemboss-pageedit-title{font-family:var(--gemboss-serif,inherit);font-size:15px;font-weight:600;color:var(--gemboss-text,#1b1c1e);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:32ch}.gemboss-pageedit-notice{display:flex;flex-wrap:wrap;align-items:center;gap:12px;flex:0 0 auto;padding:12px 16px;background:var(--gemboss-surface);border-bottom:1px solid var(--gemboss-divider);color:var(--gemboss-text);font-size:13px;line-height:1.5}.gemboss-pageedit-notice span{flex:1 1 240px;min-width:0}.gemboss-pageedit-notice button{min-height:44px;padding:8px 12px;flex:0 0 auto;border:1px solid var(--gemboss-divider);border-radius:8px;background:var(--gemboss-surface);color:var(--gemboss-text);cursor:pointer}@media (max-width:900px){.gemboss-pageedit-top{height:auto;grid-template-columns:minmax(0,1fr);grid-template-areas:"left" "right" "center";gap:8px;padding:8px 12px}.gemboss-pageedit-top .gemboss-editor-tb-right{flex-wrap:wrap;overflow:visible}.gemboss-pageedit-top .gemboss-editor-tb-right button{min-height:44px}.gemboss-pageedit .gemboss-editor-tb-left{width:100%;overflow:hidden;flex-wrap:wrap}.gemboss-pageedit .gemboss-editor-tb-right,.gemboss-pageedit .gemboss-editor-tb-center{justify-self:stretch;justify-content:flex-start;max-width:100%;overflow-x:auto}.gemboss-pageedit-top .gemboss-editor-tb-center{flex-wrap:wrap;row-gap:8px;overflow:visible}}.gemboss-sec-type{font-size:11px;font-weight:700;letter-spacing:.02em;padding:2px 8px;border-radius:12px;background:#f1efe9;color:var(--gemboss-text-muted);text-transform:capitalize}.gemboss-sec-insert-wrap{position:relative}.gemboss-sec-insert-menu{position:absolute;top:42px;right:0;width:280px;max-height:60vh;overflow-y:auto;padding:6px;z-index:80}.gemboss-sec-insert-item{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;border:0;background:transparent;border-radius:8px;cursor:pointer;text-align:left;font-size:13px;color:var(--gemboss-text,#1b1c1e);transition:background .12s ease,color .12s ease}.gemboss-sec-insert-item:hover{background:var(--gemboss-hover,rgba(0,0,0,.04))}.gemboss-sec-insert-item:focus-visible{outline:2px solid var(--ui-focus,currentColor);outline-offset:-2px;background:var(--gemboss-hover,rgba(0,0,0,.04))}.gemboss-sec-insert-item:disabled{opacity:.6;cursor:default}.gemboss-sec-insert-item:disabled:hover{background:transparent}.gemboss-sec-insert-cat{font-size:var(--gemboss-fs-caption);color:var(--gemboss-text-muted,#686b71);text-transform:capitalize}.gemboss-sec-insert-empty{display:block;padding:16px;font-size:13px;color:var(--gemboss-text-muted,#686b71);text-decoration:none}.gemboss-pageedit-scope{font-size:var(--gemboss-fs-caption);color:var(--gemboss-text-muted,#686b71);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}@media (max-width:1200px){.gemboss-pageedit-scope{display:none}}.gemboss-pageedit-pv{flex:1;min-width:0;background:var(--gemboss-preview-canvas);display:flex;justify-content:center;overflow:auto;position:relative}.gemboss-pageedit-pv .gemboss-pv-frame iframe{width:100%;height:100%;border:0;background:#fff;display:block}.gemboss-pageedit-chip{display:flex;align-items:center;gap:8px;margin:0 12px 8px;padding:6px 12px;border-radius:8px;background:var(--gemboss-active-bg);border:1px solid var(--gemboss-divider);font-size:12px;color:var(--gemboss-active-fg)}.gemboss-pageedit-chip button{flex:none;margin-left:auto;border:0;background:transparent;color:var(--gemboss-active-fg);cursor:pointer;font-size:12px}.gemboss-pageedit-standing{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:8px 16px;background:#b07d1817;border-bottom:1px solid rgba(176,125,24,.28);font-size:13px;line-height:1.5;color:#7a5710}.gemboss-pageedit-standing code{font-size:12px;background:#b07d1824;border-radius:4px;padding:2px 4px}.gemboss-pageedit-standing button{margin-left:auto;flex:0 0 auto;border:1px solid rgba(176,125,24,.4);background:#fff;color:#7a5710;border-radius:8px;padding:4px 12px;font:inherit;font-weight:600;cursor:pointer}.gemboss-pageedit-standing button:disabled{opacity:.6;cursor:default}.gemboss-picker-backdrop{position:fixed;inset:0;background:#1f1e1d38;z-index:70}.gemboss-picker-head{flex:0 0 auto;height:52px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid var(--gemboss-divider,#e5e7ea);font-weight:600;font-size:15px}.gemboss-picker-head button{border:0;background:transparent;font-size:15px;cursor:pointer;color:var(--gemboss-text-muted,#686b71)}.gemboss-picker-empty{padding:20px;text-align:center;color:var(--gemboss-text-muted,#686b71);font-size:13px}.gemboss-layers{position:fixed;top:0;left:0;bottom:0;width:300px;background:#fff;border-right:1px solid var(--gemboss-divider,#e5e7ea);box-shadow:8px 0 30px #1f1e1d1f;z-index:71;display:flex;flex-direction:column}.gemboss-layers-list{flex:1;min-height:0;overflow-y:auto;padding:8px 12px;display:flex;flex-direction:column;gap:4px}.gemboss-layer{display:flex;align-items:center;gap:4px;border:1px solid transparent;border-radius:8px;padding:0 4px 0 6px}.gemboss-layer:hover{background:var(--gemboss-hover,rgba(0,0,0,.04))}.gemboss-layer.is-sel{border-color:var(--gemboss-primary, #1b1c1e);background:var(--gemboss-active-bg)}.gemboss-layer-main{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:1px;background:transparent;border:0;cursor:pointer;text-align:left;padding:8px 4px}.gemboss-layer-type{font-size:13px;font-weight:600;color:var(--gemboss-text,#1b1c1e)}.gemboss-layer-type,.gemboss-pageedit-chip>span{overflow-wrap:anywhere}.gemboss-layer-head{font-size:var(--gemboss-fs-caption);color:var(--gemboss-text-muted,#686b71);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:195px}.gemboss-layer-acts{display:flex;gap:0;flex:0 0 auto}.gemboss-layer-acts button{width:26px;height:26px;border:0;background:transparent;border-radius:6px;cursor:pointer;color:var(--gemboss-text-muted,#686b71);font-size:13px;line-height:1}.gemboss-layer-acts button:hover:not(:disabled){background:var(--gemboss-hover,rgba(0,0,0,.07))}.gemboss-layer-acts button:disabled{opacity:.28;cursor:default}.gemboss-layer-del:hover:not(:disabled){color:#c0392b}@media (pointer: coarse){.gemboss-layer{flex-wrap:wrap}.gemboss-layer-acts{margin-left:auto}.gemboss-layer-acts button{width:44px;height:44px;font-size:15px}.gemboss-layer-main{flex:1 1 140px;min-height:44px;justify-content:center}.gemboss-layer-head{max-width:100%}}.gemboss-layer-grip{flex:0 0 auto;width:12px;margin-right:-2px;color:var(--gemboss-text-muted,#686b71);font-size:11px;letter-spacing:-2px;line-height:1;text-align:center;cursor:grab;user-select:none}.gemboss-layer[draggable=true]{cursor:grab}.gemboss-layer.is-dragging{opacity:.4}.gemboss-layer[data-drop=before]{box-shadow:0 -2px 0 var(--gemboss-primary, #1b1c1e)}.gemboss-layer[data-drop=after]{box-shadow:0 2px 0 var(--gemboss-primary, #1b1c1e)}.gemboss-layer.is-hidden .gemboss-layer-main{opacity:.5}.gemboss-layer-acts .gemboss-layer-eye{display:inline-grid;place-items:center}.gemboss-layer-acts .gemboss-layer-eye[aria-pressed=true]{color:var(--gemboss-text,#1b1c1e)}.gemboss-layers[hidden],.gemboss-settings[hidden],.gemboss-picker-backdrop[hidden]{display:none}.gemboss-settings{position:fixed;top:0;right:0;bottom:0;width:min(380px,100%);box-sizing:border-box;background:#fff;border-left:1px solid var(--gemboss-divider,#e5e7ea);box-shadow:-8px 0 30px #1f1e1d1f;z-index:71;display:flex;flex-direction:column}.gemboss-settings-body{flex:1;min-height:0;overflow-y:auto;padding:16px 20px;display:flex;flex-direction:column;gap:12px}.gemboss-settings-grouphead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:4px;padding-top:16px;border-top:1px solid var(--gemboss-divider,#e5e7ea)}.gemboss-settings-grouphead>span{font-size:var(--gemboss-fs-caption);font-weight:700;color:var(--gemboss-text,#1b1c1e)}.gemboss-settings-gen{border:1px solid var(--gemboss-divider,#e5e7ea);background:var(--gemboss-surface,#fff);border-radius:999px;padding:4px 12px;font-size:12px;font-weight:600;font-family:inherit;color:var(--gemboss-text,#1b1c1e);cursor:pointer;white-space:nowrap}.gemboss-settings-gen:hover:not(:disabled){background:var(--gemboss-hover,#eceef2)}.gemboss-settings-gen:disabled{opacity:.55;cursor:default}.gemboss-settings-note{margin:0 0 4px;font-size:var(--gemboss-fs-caption);color:var(--gemboss-text-muted);line-height:1.5}.gemboss-settings-error{margin:0 0 8px;padding:8px 12px;border-radius:8px;font-size:var(--gemboss-fs-caption);line-height:1.45;color:#8a1c1c;background:#fdecec;border:1px solid #f5c2c2}textarea.gemboss-ei-inp.gemboss-mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;line-height:1.5}.gemboss-ei-prefix{flex:none;white-space:nowrap;color:var(--gemboss-text-muted,#686b71)}.gemboss-ei-pickbtn{display:flex;align-items:center;gap:8px;width:100%;text-align:left;cursor:pointer}.gemboss-ei-pickbtn[aria-expanded=true]{border-color:var(--gemboss-field-line-active)}.gemboss-ei-pickbtn-pic{display:inline-flex;flex:none;min-width:20px;height:20px;align-items:center;justify-content:center}.gemboss-ei-pickbtn-pic :is(svg,img){width:20px;height:20px}.gemboss-ei-pickbtn-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gemboss-ei-pickbtn-chev{flex:none;color:var(--gemboss-text-muted,#686b71)}.gemboss-settings-foot{flex:0 0 auto;display:flex;justify-content:flex-end;gap:12px;padding:12px 20px;border-top:1px solid var(--gemboss-divider,#e5e7ea)}.gemboss-settings-cancel{background:transparent;border:1px solid var(--gemboss-divider,#e5e7ea);border-radius:8px;font-size:13px;font-weight:600;padding:8px 16px;cursor:pointer;color:var(--gemboss-text,#1b1c1e)}.gemboss-settings-save{background:var(--gemboss-primary, #1b1c1e);color:#fff;border:0;border-radius:8px;font-size:13px;font-weight:700;padding:8px 20px;cursor:pointer}.gemboss-settings-save:disabled{opacity:.6;cursor:default}.gemboss-pageedit .gemboss-pv-device{flex-shrink:0}@media (pointer: coarse),(max-width:47.9975em){.gemboss-pageedit .gemboss-ec-dock-body :is(button:where(:not(.gemboss-ei-help)),input,select){min-height:44px}}.gemboss-page-draft-status{flex:0 0 auto;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;padding:8px 12px;border-radius:8px;background:var(--gemboss-surface,#fff);color:var(--gemboss-text,#1b1c1e);font-size:12px;line-height:1.5;box-shadow:0 1px 6px #0001}.gemboss-page-draft-status button{min-height:44px;min-width:44px;padding:8px 12px;border:1px solid var(--gemboss-divider);border-radius:6px;background:var(--gemboss-surface,#fff);cursor:pointer}.gemboss-page-draft-status button:hover{background:var(--gemboss-hover,#eceef2)}.gemboss-page-draft-status button:focus-visible{outline:2px solid var(--ui-focus,currentColor);outline-offset:2px}.gemboss-page-draft-status[data-page-preview-state=ready]{pointer-events:none}.gemboss-pageedit .gemboss-pageedit-pv{flex-direction:column;min-height:0;justify-content:flex-start}.gemboss-page-draft-stage{flex:1;min-height:0;position:relative;overflow:hidden;display:flex;justify-content:center}@media (max-width:1000px){.gemboss-pageedit .gemboss-editor-body>.gemboss-ec{flex:0 0 auto;height:44%;min-height:min(520px,76%);max-height:76%}}.gemboss-ei{position:absolute;top:12px;right:12px;z-index:6;width:320px;max-width:calc(100% - 24px);display:flex;flex-direction:column;max-height:calc(100% - 24px);background:var(--gemboss-surface);border:1px solid var(--gemboss-divider);border-radius:var(--gemboss-radius-xl);box-shadow:var(--gemboss-shadow-overlay);overflow:hidden}.gemboss-ei--docked{position:static;top:auto;right:auto;width:100%;max-width:none;height:100%;max-height:none;border:0;border-radius:0;box-shadow:none;background:transparent;flex:1;min-height:0}.gemboss-ei-head{display:flex;align-items:center;gap:8px;padding:12px;border-bottom:1px solid var(--gemboss-divider)}.gemboss-ec>.gemboss-ei-head{padding-inline:var(--gemboss-ec-inset,12px)}.gemboss-ec .gemboss-ei--docked .gemboss-ei-head{padding-inline:var(--gemboss-ec-inset,12px)}.gemboss-ec .gemboss-ei--docked .gemboss-ei-tabs{margin-inline:var(--gemboss-ec-inset,12px)}:is(.gemboss-settings-body,.gemboss-ec-dock-body) .gemboss-ei-tabs{margin-inline:0}.gemboss-ec .gemboss-ei--docked .gemboss-ei-pane{padding-inline:var(--gemboss-ec-inset,16px)}.gemboss-ei-title{font-size:var(--gemboss-fs-body);font-weight:700;line-height:1.2;min-width:0;overflow:hidden;overflow-wrap:break-word}.gemboss-ei-title small{display:block;font-weight:500;font-size:11px;color:var(--gemboss-text-muted);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gemboss-ei-act,.gemboss-ei-x{margin-left:auto;width:26px;height:26px;flex:none;border:0;background:transparent;cursor:pointer;color:var(--gemboss-text-muted);border-radius:6px;display:grid;place-items:center;font-size:14px}.gemboss-ei-x{margin-left:2px;font-size:13px}.gemboss-ei-act:hover,.gemboss-ei-x:hover{background:var(--gemboss-hover);color:var(--gemboss-text)}.gemboss-ei-act:disabled{opacity:.5;cursor:default}.gemboss-ei-tabs{display:flex;gap:2px;margin:8px 12px 0;background:var(--gemboss-active-bg);padding:4px;border-radius:8px}.gemboss-ei-tab{flex:1;border:0;background:transparent;cursor:pointer;color:var(--gemboss-text-muted);font-weight:550;font-size:13px;line-height:20px;padding:4px;border-radius:6px;display:flex;align-items:center;justify-content:center;gap:6px}.gemboss-ei-tab.on{background:var(--gemboss-surface);color:var(--gemboss-text);box-shadow:var(--gemboss-shadow-resting)}.gemboss-ei-tabs.is-flush{margin:0}.gemboss-ei-tabs.has-hints{container-type:inline-size}.gemboss-ei-tab-text{display:flex;flex-direction:column;align-items:center;min-width:0}.gemboss-ei-tab-hint{font-size:var(--gemboss-fs-micro,11px);font-weight:450;line-height:1.3;color:var(--gemboss-text-muted);text-align:center;text-wrap:balance}@container (max-width:300px){.gemboss-ei-tab-hint{display:none}}.gemboss-ei-body{flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin;padding:2px 0 4px}.gemboss-ei-body::-webkit-scrollbar{width:9px}.gemboss-ei-body::-webkit-scrollbar-thumb{background:#1f1e1d33;border-radius:6px;border:2px solid var(--gemboss-surface);background-clip:content-box}.gemboss-ei-pane{padding:4px 16px 6px}.gemboss-ei-note{margin:0 0 8px;padding:8px 12px;border-radius:8px;background:var(--gemboss-hover,#eceef2);border:1px solid var(--gemboss-divider,#e5e7ea);color:var(--gemboss-text-muted,#686b71);font-size:12px;line-height:1.45}.gemboss-ec-dock-body,.gemboss-ei,.gemboss-ei-grp,.gemboss-ei-group{--gemboss-ei-gap-part:4px;--gemboss-ei-gap-setting:16px;--gemboss-ei-gap-sub:24px;--gemboss-ei-gap-group:16px;--gemboss-ei-gap-head:8px}.gemboss-ei-grp{border-bottom:1px solid var(--gemboss-divider-soft);padding:var(--gemboss-ei-gap-group) 0}.gemboss-ei-grp:last-child{border-bottom:none}.gemboss-ei-gh{font-size:13px;line-height:20px;color:var(--gemboss-text);font-weight:650;margin-bottom:var(--gemboss-ei-gap-head);display:flex;align-items:center;gap:6px;width:100%;border:0;background:transparent;cursor:pointer;text-align:left;padding:0;-webkit-appearance:none}.gemboss-ei-chev{order:1;flex:none;margin:0 4px 0 auto;width:6px;height:6px;font-size:0;border:solid var(--gemboss-text-muted);border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}.gemboss-ei-gh[data-open=closed]>.gemboss-ei-chev{transform:rotate(-45deg)}.gemboss-ei-gh-note{margin-left:6px;font-size:12px;font-weight:450;opacity:.55}.gemboss-ei-gh[data-open=closed]{margin-bottom:0}.gemboss-ei-grp:where(:has(>.gemboss-ei-gh[data-open=closed])){padding:8px 0}@media (pointer: coarse),(max-width:47.9975em){.gemboss-ei-grp:where(:has(>.gemboss-ei-gh[data-open=closed])){padding:2px 0}.gemboss-ec-dock-body,.gemboss-ei,.gemboss-ei-grp,.gemboss-ei-group{--gemboss-ei-gap-setting:12px;--gemboss-ei-gap-sub:20px;--gemboss-ei-gap-group:12px;--gemboss-ei-gap-head:4px}}.gemboss-ei-grp>.gemboss-ei-gh[data-open=closed]~*{display:none}.gemboss-ei-fld{margin-bottom:var(--gemboss-ei-gap-setting)}.gemboss-ei-fld:last-child{margin-bottom:0}.gemboss-ei-fld:has(+.gemboss-ei-rule){margin-bottom:0}.gemboss-ei-group>.gemboss-ei-hint+button{margin-top:var(--gemboss-ei-gap-setting)}.gemboss-ei-grp>:not(.gemboss-ei-gh)+:not(.gemboss-ei-hint){margin-top:var(--gemboss-ei-gap-setting)}.gemboss-ei-grp>[data-ei-head]+:not(.gemboss-ei-hint){margin-top:var(--gemboss-ei-gap-head)}.gemboss-ei-grp>:not(.gemboss-ei-gh)+[data-ei-sub]{margin-top:var(--gemboss-ei-gap-sub)}.gemboss-ei-grp>[data-ei-sub=line]+[data-ei-sub=line]{margin-top:var(--gemboss-ei-gap-part)}.gemboss-ei-grp [data-ei-sub]>*+*{margin-top:var(--gemboss-ei-gap-setting)}.gemboss-ei-grp [data-ei-sub]>[data-ei-head]+*{margin-top:var(--gemboss-ei-gap-head)}.gemboss-ei-fld>label:where(:not(.gemboss-field)),.gemboss-ei-lbl{display:block;font-size:13px;font-weight:500;color:var(--gemboss-text);margin-bottom:var(--gemboss-ei-gap-part)}.gemboss-ei-lbl>label{margin:0}.gemboss-ei-help{display:none}:is(.gemboss-ei-grp,.gemboss-ei-group) :is(.gemboss-ei-fld>label:where(:not(.gemboss-field)),.gemboss-ei-lbl){font-weight:450;color:var(--gemboss-text-muted)}:is(.gemboss-ei-grp,.gemboss-ei-group) .gemboss-ei-lbl{display:flex;gap:4px;align-items:start}.gemboss-ei-fld.gemboss-ei-fld--row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:0 8px;align-items:start}.gemboss-ei-fld.gemboss-ei-fld--row>:not(:first-child){grid-column:2}.gemboss-ei-fld.gemboss-ei-fld--row>:first-child{margin:0;padding-top:6px}.gemboss-ei-fld.gemboss-ei-fld--row>.gemboss-ei-hint{grid-column:1/-1}.gemboss-ei-fld>.gemboss-ei-hint.gemboss-ei-count{text-align:end}.gemboss-ei-fld.gemboss-ei-fld--row>.gemboss-ei-hint.gemboss-ei-count{grid-column:2}@media (max-width:22.4975em){.gemboss-ei-fld.gemboss-ei-fld--row:has(>.ui-seg>:nth-child(4)){grid-template-columns:minmax(0,1fr)}.gemboss-ei-fld.gemboss-ei-fld--row:has(>.ui-seg>:nth-child(4))>*{grid-column:1}}:is(.gemboss-ei-grp,.gemboss-ei-group) .gemboss-ei-help{display:block;flex:none;width:16px;height:16px;padding:0;border:0;border-radius:50%;box-shadow:inset 0 0 0 1px;background:none;color:inherit;font:650 10px/16px var(--gemboss-font-sans);cursor:help;position:relative}.gemboss-ei-help:after{content:"";position:absolute;inset:-4px;border-radius:50%}.gemboss-ei-help:is(:hover,[aria-expanded=true]){color:var(--gemboss-text)}:is(.gemboss-ei-grp,.gemboss-ei-group) .gemboss-ei-fld:has(>.gemboss-ei-lbl>.gemboss-ei-help[aria-expanded=false])>.gemboss-ei-help-text{display:none}.gemboss-ei-lbl:has(>.gemboss-ei-lbl-aside){display:flex;align-items:center;gap:4px}.gemboss-ei-lbl-aside{margin-left:auto}.gemboss-ei-inp{width:100%}.gemboss-ei-mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;line-height:1.5}select.gemboss-ei-inp{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--gemboss-text-muted) 50%),linear-gradient(135deg,var(--gemboss-text-muted) 50%,transparent 50%);background-position:calc(100% - 15px) center,calc(100% - 10px) center;background-size:5px 5px,5px 5px;background-repeat:no-repeat;padding-right:32px}.gemboss-ei-swatches{display:flex;gap:8px}.gemboss-ei-sw{width:30px;height:30px;border-radius:8px;border:2px solid transparent;cursor:pointer;padding:0;box-shadow:inset 0 0 0 1px #1f1e1d1a}.gemboss-ei-sw.on{border-color:var(--gemboss-text);box-shadow:0 0 0 2px var(--gemboss-surface),0 0 0 3px var(--gemboss-primary)}.gemboss-ei-sw:disabled{cursor:default;opacity:.7}@media (pointer: coarse),(max-width:47.9975em){.gemboss-ei-tab,.gemboss-ei-gh{min-height:44px}.gemboss-ei-sw{width:44px;height:44px}.gemboss-ei-swatches{flex-wrap:wrap}}@media (pointer: coarse),(max-width:47.9975em){.gemboss-ei-fld :is(input:not([type=checkbox]):not([type=radio]),select,button:not(.gemboss-ei-help)){min-height:44px}.gemboss-ei-fld :is(button:not(.gemboss-ei-help),input[type=color]){min-width:44px}.gemboss-ei-help:after{inset:-14px}}.gemboss-ei-apply{margin-top:2px;background:var(--gemboss-primary);color:#fff;border:0;border-radius:8px;font-size:var(--gemboss-fs-caption);font-weight:700;padding:8px 16px;cursor:pointer}.gemboss-ei-apply:hover{background:var(--gemboss-primary-dark)}.gemboss-ei-apply:disabled{opacity:.6;cursor:default}.gemboss-ei-hint{margin:var(--gemboss-ei-gap-part) 0 0;font-size:12px;line-height:16px;color:var(--gemboss-text-muted)}.gemboss-ei-empty{padding:24px 16px;text-align:center;font-size:var(--gemboss-fs-caption);color:var(--gemboss-text-muted);display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}.gemboss-ei-foot{flex:0 0 auto;display:flex;align-items:center;gap:8px;padding:8px 16px;border-top:1px solid var(--gemboss-divider);font-size:11px;color:var(--gemboss-text-muted)}.gemboss-ei-savedot{width:6px;height:6px;border-radius:50%;background:var(--gemboss-success);box-shadow:0 0 0 3px #2e8b572e}.gemboss-ei-savedot.busy{background:var(--gemboss-primary);box-shadow:0 0 0 3px var(--gemboss-primary-soft)}.gemboss-ei-foot.is-error{color:var(--gemboss-danger)}.gemboss-ei-foot.is-error .gemboss-ei-savedot{background:var(--gemboss-danger);box-shadow:0 0 0 3px #d72c0d29}.gemboss-ei-drag{cursor:grab;user-select:none}.gemboss-ei-drag:active{cursor:grabbing}.gemboss-ei-dragmask{position:fixed;inset:0;z-index:9998;cursor:grabbing}.gemboss-ei-block{border:1px solid var(--gemboss-divider);border-radius:12px;padding:12px;margin-bottom:12px;background:var(--gemboss-panel-bg)}.gemboss-ei-block:last-child{margin-bottom:0}.gemboss-ei-block-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;font-size:12px;font-weight:700;color:var(--gemboss-text)}.gemboss-ei-block-x{border:0;background:transparent;cursor:pointer;color:var(--gemboss-text-muted);width:22px;height:22px;border-radius:6px;font-size:11px;flex:none}.gemboss-ei-block-x:hover{background:var(--gemboss-hover);color:var(--gemboss-danger-strong)}.gemboss-ei-block-x:disabled{opacity:.5;cursor:default}.gemboss-ei-block .gemboss-ei-inp{background:var(--gemboss-surface)}.gemboss-ei-img{display:flex;gap:8px;align-items:flex-start;border-radius:8px}.gemboss-ei-img-thumb{flex:none;width:56px;height:56px;border-radius:8px;border:1px solid var(--gemboss-divider);background:var(--gemboss-panel-bg) center/cover no-repeat;display:grid;place-items:center;color:var(--gemboss-text-muted);font-size:16px}.gemboss-ei-img-ctl{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.gemboss-ei-img-actions{display:flex;flex-wrap:wrap;gap:6px}.gemboss-ei-img-info{display:flex;flex-direction:column;min-width:0}.gemboss-ei-img-name{font-size:13px;line-height:20px;color:var(--gemboss-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gemboss-ei-img-meta{font-size:12px;line-height:16px;color:var(--gemboss-text-muted);min-height:16px}.gemboss-ei-img-drop{font-size:13px;line-height:20px;color:var(--gemboss-text-muted)}.gemboss-ei-img[data-over]{outline:2px dashed var(--gemboss-accent);outline-offset:4px}.gemboss-ei-gen{display:flex;flex-direction:column;gap:8px;margin-top:8px;padding:8px;border:1px solid var(--gemboss-divider);border-radius:12px;background:var(--gemboss-panel-bg)}.gemboss-ei-gen .gemboss-ei-apply{align-self:flex-start;display:inline-flex;align-items:center;gap:6px}.gemboss-ei-gen .gemboss-narr-spin{width:11px;height:11px}.gemboss-ei-oos{margin:4px 16px 12px;padding:12px;border:1px solid var(--gemboss-divider);border-left:3px solid var(--gemboss-text-muted);border-radius:8px;background:var(--gemboss-panel-bg)}.gemboss-ei-oos-h{font-size:var(--gemboss-fs-micro);letter-spacing:.1em;text-transform:uppercase;color:var(--gemboss-text-muted);font-weight:700;margin-bottom:8px}.gemboss-ei-oos p{margin:0 0 6px;font-size:12px;color:var(--gemboss-text-muted);line-height:1.45}.gemboss-ei-oos p:last-child{margin-bottom:0}.gemboss-ei-oos b{color:var(--gemboss-text);font-weight:600}.gemboss-ei-edgebox{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:6px}.gemboss-ei-value{display:grid;gap:8px}.gemboss-ei-value-row{display:flex;align-items:center;gap:12px}.gemboss-ei-value--words>.ui-seg.ui-seg--fill>.is-text{flex:1 1 auto;padding:0 8px}@media (max-width:47.9975em){.gemboss-ei-value--words>.ui-seg.ui-seg--fill>.is-text{min-width:44px}}.gemboss-ei-value-box{flex:0 0 7em}.gemboss-ei-value-box input{text-align:right;font-variant-numeric:tabular-nums}.gemboss-ei-value-row .gemboss-ei-range{flex:1 1 auto;min-width:0}.gemboss-ei-fld.gemboss-ei-fld--row>.gemboss-ei-value{display:contents}.gemboss-ei-fld.gemboss-ei-fld--row>.gemboss-ei-value>.gemboss-ei-value-row{grid-column:2}.gemboss-ei-fld.gemboss-ei-fld--row>.gemboss-ei-value>:not(.gemboss-ei-value-row){grid-column:1/-1;margin-top:var(--gemboss-ei-gap-part)}.gemboss-ei-edge{display:flex;flex-direction:column;align-items:center;gap:4px}.gemboss-ei-edge input{width:100%;text-align:center;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-variant-numeric:tabular-nums}.gemboss-ei-edge span{font-size:var(--gemboss-fs-micro);letter-spacing:.06em;color:var(--gemboss-text-muted);font-weight:700}.gemboss-ei-edge-scrub{align-self:stretch;min-height:24px;margin-top:4px;display:flex;align-items:center;justify-content:center;border-radius:var(--gemboss-radius-sm);cursor:ew-resize;user-select:none;touch-action:pan-y}@media (hover: hover){.gemboss-ei-edge-scrub:not([aria-disabled]):hover{background:var(--gemboss-hover);color:var(--gemboss-text)}}.gemboss-ei-edge-scrub[aria-disabled]{cursor:default}.gemboss-ec-dock-body{flex:1;min-height:0;overflow-y:auto;padding:var(--gemboss-ec-inset,12px)}.gemboss-ei-group{padding:var(--gemboss-ei-gap-group) 0}.gemboss-ei-group+.gemboss-ei-group{border-top:1px solid var(--gemboss-divider)}.gemboss-ei-grouphead{margin:0 0 12px;font-size:var(--gemboss-fs-micro,11px);font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--gemboss-text-muted)}.gemboss-ei-color{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.gemboss-ei-color-why{display:block;flex:1 0 100%;margin:-4px 0 0;font-size:12px;line-height:16px;color:var(--gemboss-text-muted)}.gemboss-ei-color .gemboss-ei-inp{flex:1;min-width:0}.gemboss-ei-swatch{flex:none;width:32px;height:32px;padding:0;border:1px solid var(--gemboss-divider);border-radius:8px;background:var(--gemboss-surface);cursor:pointer}.gemboss-ei-swatch::-webkit-color-swatch-wrapper{padding:2px}.gemboss-ei-swatch::-webkit-color-swatch{border:none;border-radius:6px}.gemboss-ei-swatch[data-empty]::-webkit-color-swatch{background-image:linear-gradient(to top right,#0000 46%,var(--gemboss-text-muted,#686b71) 46% 54%,#0000 54%)}.gemboss-ei-swatch:disabled{cursor:default;opacity:.7}:is(.gemboss-ei-fld,.gemboss-ei-lbl)>label>.gemboss-ei-rangeval{float:right;font-weight:700;color:var(--gemboss-text);font-variant-numeric:tabular-nums}.gemboss-ei-range{width:100%;margin-inline:0;accent-color:var(--gemboss-primary);cursor:pointer}.gemboss-ei-range:disabled{cursor:default;opacity:.7}@media (max-width:760px){.gemboss-ei{position:static;width:auto;max-width:none;max-height:none;margin:8px;box-shadow:var(--gemboss-shadow-raised)}}.gemboss-ei-tree{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:1px}.gemboss-ei-tnode{display:flex;align-items:center;gap:4px;flex-wrap:wrap;border-radius:6px;padding-right:4px}.gemboss-ei-tnode:hover{background:var(--gemboss-surface)}.gemboss-ei-tnode.on{background:var(--gemboss-primary-soft,var(--gemboss-surface));box-shadow:inset 2px 0 0 var(--gemboss-primary)}.gemboss-ei-tname{flex:1;min-width:0;display:flex;align-items:baseline;gap:6px;border:0;background:transparent;cursor:pointer;text-align:left;padding:6px 2px;color:var(--gemboss-text);font-size:12px;font-weight:600}.gemboss-ei-tname small{font-weight:400;font-size:10px;color:var(--gemboss-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gemboss-ei-tacts{flex:none;display:flex;gap:1px;opacity:0;transition:opacity .12s}.gemboss-ei-tnode:hover .gemboss-ei-tacts,.gemboss-ei-tnode.on .gemboss-ei-tacts,.gemboss-ei-tacts:focus-within{opacity:1}.gemboss-ei-tacts button{border:0;background:transparent;cursor:pointer;color:var(--gemboss-text-muted);font-size:11px;line-height:1;padding:4px 6px;border-radius:6px}.gemboss-ei-tacts button:hover:not(:disabled){background:var(--gemboss-surface);color:var(--gemboss-text)}.gemboss-ei-tacts button:disabled{opacity:.3;cursor:default}.gemboss-ei-tadd{flex-basis:100%;padding:4px 2px 6px}.gemboss-editor-topbar--guest{grid-template-columns:1fr auto 1fr}.gemboss-guest-mark{flex:0 0 auto;display:block}.gemboss-guest-brand{font-weight:700;letter-spacing:-.02em;font-size:15px;margin-left:8px}.gemboss-guest-note{font-size:var(--gemboss-fs-caption);color:var(--gemboss-text-muted);border:1px solid var(--gemboss-divider-soft);border-radius:999px;padding:4px 12px;white-space:nowrap}.gemboss-editor-topbar--guest .gemboss-editor-tb-right{display:flex;align-items:center;gap:16px;justify-content:flex-end}.gemboss-guest-signin{font-size:var(--gemboss-fs-body);font-weight:600;color:var(--gemboss-text-muted);text-decoration:none}.gemboss-guest-signin:hover{color:var(--gemboss-text)}.gemboss-guest-keep{border:0;border-radius:999px;background:var(--gemboss-primary);color:var(--gemboss-on-primary);cursor:pointer;font:inherit;font-size:var(--gemboss-fs-caption);font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:8px 20px;white-space:nowrap}.gemboss-guest-keep:hover{background:var(--gemboss-primary-dark)}@media (max-width: 720px){.gemboss-guest-note{display:none}}@media (max-width: 1000px){.gemboss-editor-topbar--guest{grid-template-columns:auto minmax(0,1fr)}}@media (max-width: 460px){.gemboss-guest-brand{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.gemboss-editor-topbar--guest .gemboss-editor-tb-right{gap:8px}.gemboss-editor-topbar--guest .gemboss-guest-keep{padding-inline:12px}}@media (max-width: 400px){.gemboss-editor-topbar--guest{padding-inline:8px;column-gap:8px}}.gemboss-ei-check{display:inline-flex;align-items:center;gap:8px;min-height:44px;max-width:100%;overflow-wrap:break-word;cursor:pointer;color:var(--gemboss-text)}.gemboss-ei-check[data-disabled]{opacity:.5;cursor:not-allowed}.gemboss-ei-checkbox{flex:none;width:18px;height:18px;margin:0;accent-color:var(--ui-accent,#1b1c1e);cursor:inherit}.gemboss-ei-checkbox:focus-visible{outline:2px solid var(--ui-focus,#1b1c1e);outline-offset:2px}.gemboss-ei-check-words{min-width:0}.gemboss-ei-check--bare{min-width:44px;justify-content:center}.gemboss-ei-choices{display:flex;flex-direction:column;gap:6px;min-width:0}.gemboss-ei-choice{display:flex;flex-shrink:0;align-items:center;gap:12px;min-height:44px;padding:8px 12px;box-sizing:border-box;border-radius:8px;border:1px solid var(--gemboss-divider,#e5e7ea);cursor:pointer;color:var(--gemboss-text)}.gemboss-ei-choice:hover{background:var(--gemboss-hover)}.gemboss-ei-choice[data-checked]{border-color:var(--gemboss-text,#1b1c1e)}.gemboss-ei-choice[data-disabled]{cursor:not-allowed}.gemboss-ei-choice[data-disabled]>:is(.gemboss-ei-choice-input,.gemboss-ei-choice-pic),.gemboss-ei-choice[data-disabled] .gemboss-ei-choice-name{opacity:.55}.gemboss-ei-choice:has(>.gemboss-ei-choice-input:focus-visible){outline:2px solid var(--ui-focus,currentColor);outline-offset:2px}.gemboss-ei-choice-input{flex:none;inline-size:18px;block-size:18px;margin:0;accent-color:var(--ui-accent,#1b1c1e);cursor:inherit}.gemboss-ei-choice-words{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.gemboss-ei-choice-name{font-size:13px;font-weight:600}.gemboss-ei-choice-line{font-size:12px;color:var(--gemboss-text-muted);overflow-wrap:anywhere}.gemboss-ei-choice-pic{flex:none;display:inline-flex}.gemboss-ei-secret{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}.gemboss-ei-secret-box{flex:1 1 96px;min-width:0}.gemboss-ei-secret-box[type=text]{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.gemboss-ei-secret-acts{display:flex;gap:8px;flex:none}.gemboss-ei-secret--saved{justify-content:space-between}.gemboss-ei-secret-said{min-width:0;color:var(--gemboss-text)}.gemboss-ei-secret-tail{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
1
+ @keyframes gemboss-editor-enter{0%{opacity:0}to{opacity:1}}@keyframes gemboss-editor-toast-in{0%{opacity:0;transform:translate(-50%,-8px)}to{opacity:1;transform:translate(-50%)}}@keyframes gemboss-flyout-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}@keyframes gemboss-statusbar-in{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}.gemboss-platform-main:has(.gemboss-editor){box-sizing:border-box;height:100dvh;min-height:0;padding-top:0;padding-bottom:0;overflow:clip}.gemboss-editor{--gemboss-editor-inset: 5px;position:fixed;inset:0;box-sizing:border-box;display:flex;flex-direction:column;background:var(--gemboss-canvas);overflow:hidden;z-index:400;animation:gemboss-editor-enter .26s cubic-bezier(.16,1,.3,1)}@media (prefers-reduced-motion: reduce){.gemboss-editor{animation:none}}.gemboss-editor--embedded{position:relative;inset:auto;height:100%;min-height:0;z-index:auto;animation:none}.gemboss-editor-toast{position:absolute;top:62px;left:50%;transform:translate(-50%);z-index:500;display:flex;align-items:center;gap:12px;max-width:min(560px,92vw);padding:12px 12px 12px 16px;background:var(--gemboss-text);color:#fff;border-radius:12px;font-size:13px;line-height:1.4;box-shadow:var(--gemboss-shadow-overlay);animation:gemboss-editor-toast-in .24s cubic-bezier(.16,1,.3,1)}.gemboss-editor-toast strong{font-weight:600}.gemboss-editor-toast button{flex:0 0 auto;border:0;background:#ffffff29;color:#fff;width:22px;height:22px;border-radius:8px;cursor:pointer;font-size:12px;line-height:1;transition:background var(--gemboss-transition-fast) ease}.gemboss-editor-toast button:hover{background:#ffffff47}.gemboss-editor-toast button:focus-visible{outline:2px solid #fff;outline-offset:2px}@media (prefers-reduced-motion: reduce){.gemboss-editor-toast{animation:none}}.gemboss-editor-topbar{flex:0 0 auto;height:var(--gemboss-editor-topbar-h, 52px);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;padding:0 16px;background:var(--gemboss-surface);border-bottom:1px solid var(--gemboss-divider)}@media (min-width: 1001px){.gemboss-editor-topbar--theme{grid-template-columns:auto auto auto;justify-content:space-between}.gemboss-editor-topbar.gemboss-pageedit-top{grid-template-columns:auto fit-content(100%) auto}}.gemboss-editor-tb-left{display:flex;align-items:center;gap:12px;min-width:0}.gemboss-editor-tb-center{display:flex;align-items:center;gap:12px;justify-self:center}.gemboss-editor-topbar--theme .gemboss-editor-tb-center,.gemboss-editor-topbar.gemboss-pageedit-top .gemboss-editor-tb-center{min-width:0}.gemboss-editor-topbar.gemboss-pageedit-top .gemboss-pageedit-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width: 1200px){.gemboss-editor-topbar.gemboss-pageedit-top .gemboss-editor-tb-name,.gemboss-editor-topbar.gemboss-pageedit-top .gemboss-sec-type{display:none}}.gemboss-editor-tb-right{display:flex;align-items:center;gap:16px;min-width:0;justify-self:end}.gemboss-editor-back{border:0;background:transparent;padding:0;font-family:inherit;font-size:18px;line-height:1;color:var(--gemboss-text);text-decoration:none;cursor:pointer;width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--gemboss-radius-md);transition:background var(--gemboss-transition-fast) ease,color var(--gemboss-transition-fast) ease}.gemboss-editor-back:hover{background:var(--gemboss-hover)}.gemboss-editor-back:active{background:var(--gemboss-active-bg);color:var(--gemboss-active-fg)}.gemboss-editor-back:focus-visible{outline:2px solid var(--ui-focus, currentColor);outline-offset:2px}.gemboss-editor-tb-name{font-family:var(--gemboss-serif);font-size:15px;font-weight:600}.gemboss-editor-savestate{display:inline-flex;align-items:center;gap:6px;font-size:var(--gemboss-fs-micro);font-weight:500;line-height:1;padding:4px 8px;border-radius:var(--gemboss-radius-full);white-space:nowrap;transition:opacity .2s ease}.gemboss-editor-savestate.is-idle,.gemboss-editor-savestate.is-saving{color:var(--gemboss-text-muted)}.gemboss-editor-savestate.is-saved{color:var(--gemboss-success-strong);background:var(--gemboss-success-soft)}.gemboss-editor-savestate .gemboss-narr-spin{width:10px;height:10px;border-width:1.5px;border-color:var(--gemboss-divider);border-top-color:currentColor}@media (max-width: 760px){.gemboss-editor-savestate.is-saved{display:none}}.gemboss-editor-tb-ghost{font-size:13px;color:var(--gemboss-text);text-decoration:none;padding:8px 12px;border:1px solid var(--gemboss-divider);border-radius:8px;white-space:nowrap;cursor:pointer;background:var(--gemboss-surface);transition:border-color var(--gemboss-transition-fast) ease,color var(--gemboss-transition-fast) ease,background var(--gemboss-transition-fast) ease}.gemboss-editor-tb-ghost:hover{border-color:var(--gemboss-primary)}.gemboss-editor-tb-ghost:active{background:var(--gemboss-active-bg);border-color:var(--gemboss-primary);color:var(--gemboss-active-fg)}.gemboss-editor-tb-ghost:focus-visible{outline:2px solid var(--ui-focus, currentColor);outline-offset:2px}.gemboss-editor-tb-ghost:disabled{opacity:.5;cursor:default;border-color:var(--gemboss-divider);color:var(--gemboss-text-muted)}.gemboss-editor-tb-publish{background:var(--gemboss-primary);color:#fff;border:0;border-radius:8px;box-sizing:border-box;height:var(--ui-btn-h, 28px);padding:0 12px;font-size:12px;font-weight:550;line-height:16px;cursor:pointer;white-space:nowrap;transition:background var(--gemboss-transition-fast) ease,filter var(--gemboss-transition-fast) ease}.gemboss-editor-tb-publish:hover{background:var(--gemboss-primary-dark)}.gemboss-editor-tb-publish:active{background:var(--gemboss-primary-dark);filter:brightness(.94)}.gemboss-editor-tb-publish:focus-visible{outline:2px solid var(--ui-focus, currentColor);outline-offset:2px}.gemboss-editor-tb-publish:disabled{opacity:.5;cursor:default;filter:none}.gemboss-editor-tb-undo{font-size:15px}.gemboss-editor-publish{position:relative;display:inline-flex;align-items:stretch}.gemboss-editor-publish-main{border-radius:8px 0 0 8px}.gemboss-editor-publish-caret{border-radius:0 8px 8px 0;padding:0 8px;font-size:12px;line-height:1;border-left:1px solid color-mix(in srgb,#fff 24%,transparent);display:inline-flex;align-items:center;justify-content:center}.gemboss-editor-publish-caret.active{filter:brightness(.94)}.gemboss-editor-menu-label{padding:6px 6px 2px;font-size:11px;font-weight:600;letter-spacing:.02em;color:var(--gemboss-text-muted);white-space:nowrap}.gemboss-editor-overflow{position:relative;display:inline-flex}.gemboss-editor-overflow-trigger{font-size:18px;line-height:1}.gemboss-editor-menu{position:fixed;z-index:500;min-width:210px;max-height:calc(100vh - 16px);overflow-y:auto;padding:6px;animation:gemboss-flyout-in var(--gemboss-transition-fast) ease}@media (prefers-reduced-motion: reduce){.gemboss-editor-menu{animation:none}}.gemboss-editor-menu-item{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:32px;padding:4px 6px;border:0;border-radius:var(--gemboss-radius-md);background:transparent;font:inherit;font-size:13px;color:var(--gemboss-text);text-align:left;text-decoration:none;white-space:nowrap;cursor:pointer;transition:background var(--gemboss-transition-fast) ease,color var(--gemboss-transition-fast) ease}@media (pointer: coarse),(max-width:47.9975em){.gemboss-editor-menu-item{min-height:44px;padding:8px 12px}.gemboss-editor-menu-label{padding:6px 12px 2px}}.gemboss-editor-menu-item:hover{background:var(--gemboss-hover)}.gemboss-editor-menu-item:focus-visible{outline:2px solid var(--ui-focus, currentColor);outline-offset:-2px;background:var(--gemboss-hover)}.gemboss-editor-menu-item:disabled{opacity:.45;cursor:default}.gemboss-editor-menu-item:disabled:hover{background:transparent}.gemboss-editor-menu-item[aria-disabled=true]{color:var(--gemboss-text-muted);cursor:default}.gemboss-editor-menu-item[aria-disabled=true]:hover{background:transparent}.gemboss-editor-menu-why{display:block;font-size:12px;line-height:16px;color:var(--gemboss-text-muted)}.gemboss-editor-menu-icon{display:inline-flex;flex:none;width:16px;height:16px;color:var(--gemboss-text-muted)}.gemboss-editor-menu-item.active{color:var(--gemboss-active-fg)}.gemboss-editor-menu-ext{color:var(--gemboss-text-muted)}.gemboss-editor-menu-check{color:var(--gemboss-active-fg);font-weight:600}.gemboss-editor-menu-val{font-size:11px;color:var(--gemboss-text-muted);border:1px solid var(--gemboss-divider);border-radius:var(--gemboss-radius-sm);padding:1px 8px}.gemboss-editor-menu-sep{height:1px;background:var(--gemboss-divider-soft);margin:6px}.gemboss-editor-body{flex:1;min-height:0;display:flex;gap:0;box-sizing:border-box}.gemboss-editor-body>.gemboss-ec,.gemboss-editor-body>.gemboss-editor-preview-pane{overflow:hidden}.gemboss-editor-body>.gemboss-ec{border-right:1px solid var(--gemboss-divider)}.gemboss-ec-tabs{display:flex;gap:var(--ui-space-1);padding:var(--ui-space-2) var(--gemboss-ec-inset, 12px);border-bottom:1px solid var(--gemboss-divider);flex:none;overflow-x:auto;scrollbar-width:thin;overscroll-behavior-x:contain}.gemboss-ec-tabs>[role=tab]{flex:1 1 0;min-width:max-content;white-space:nowrap;font:inherit;font-size:13px;font-weight:600;line-height:16px;cursor:pointer;box-sizing:border-box;min-height:32px;padding:0 var(--ui-space-3);border-radius:8px;display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid transparent;background:transparent;color:var(--gemboss-text-muted);box-shadow:none}.gemboss-ec-tabs>[role=tab]:hover:not([aria-selected=true]){color:var(--gemboss-text);background:var(--gemboss-primary-soft)}.gemboss-ei-tab:not(.on):hover{color:var(--gemboss-text);background:var(--gemboss-divider)}.gemboss-ec-tabs>[role=tab]:focus-visible{outline:2px solid var(--ui-focus, currentColor);outline-offset:-2px}.gemboss-ec-tabs>[role=tab][aria-selected=true]{border-color:var(--gemboss-divider);background:var(--gemboss-surface);color:var(--gemboss-text);box-shadow:inset 0 -2px 0 var(--gemboss-primary)}@media (max-width:47.9975em){.gemboss-ec-tabs>[role=tab]{min-height:44px}}.gemboss-pv{flex:1;min-width:0;display:flex;flex-direction:column;background:var(--gemboss-preview-canvas);overflow:hidden}.ui-seg.gemboss-pv-devices>button.gemboss-pv-device{width:calc(var(--ui-btn-h) - 2px);height:calc(var(--ui-btn-h) - 2px);border:0;border-radius:0}@media (pointer: coarse),(max-width:47.9975em){.ui-seg.gemboss-pv-devices>button.gemboss-pv-device{width:44px;height:44px}}.gemboss-pv-device{border:1px solid var(--gemboss-divider);background:var(--gemboss-surface);cursor:pointer;width:28px;height:28px;border-radius:8px;color:var(--gemboss-text-muted);font-size:14px;display:inline-flex;align-items:center;justify-content:center;line-height:1;transition:border-color var(--gemboss-transition-fast) ease,color var(--gemboss-transition-fast) ease,background var(--gemboss-transition-fast) ease}.gemboss-pv-device svg{display:block}.gemboss-editor-tb-tools{display:flex;align-items:center;gap:16px;min-width:0}@media (max-width: 1200px){.gemboss-editor-tb-tools{display:none}}.gemboss-pv-device:hover{border-color:var(--gemboss-primary);color:var(--gemboss-active-fg)}.gemboss-pv-device:focus-visible{outline:2px solid var(--ui-focus, currentColor);outline-offset:2px}.gemboss-pv-device.active{border-color:var(--gemboss-primary);color:var(--gemboss-active-fg);background:var(--gemboss-active-bg)}.gemboss-pagepicker{position:relative;display:inline-flex}.gemboss-pagepicker>.gemboss-pagepicker-trigger{width:auto;max-width:220px;font-size:13px;font-weight:600}.gemboss-pagepicker-trigger .gemboss-ei-pickbtn-pic{color:var(--gemboss-text-muted)}.gemboss-pagepicker-trigger .gemboss-ei-pickbtn-pic svg{width:18px;height:18px}.gemboss-pagepicker-note{margin:0;padding:8px 12px 12px;font-size:12px;line-height:1.5;color:var(--gemboss-text-muted);border-bottom:1px solid var(--gemboss-divider)}.gemboss-pagepicker-note-link{color:var(--gemboss-primary);font-weight:600;text-decoration:none}.gemboss-pagepicker-note-link:hover{text-decoration:underline}.gemboss-pv-stage{flex:1;min-height:0;overflow:hidden;display:flex;justify-content:center;padding:0}.gemboss-pv-frame{background:var(--gemboss-surface);overflow:hidden;height:100%;position:relative}.gemboss-pv-frame.desktop{width:100%;max-width:none}.gemboss-pv-frame.gemboss-pv-fit.desktop{position:absolute;top:0;left:0;width:var(--gemboss-pv-w, 100%);height:var(--gemboss-pv-h, 100%);transform:scale(calc(var(--gemboss-pv-scale, 1) * var(--gemboss-pv-user-zoom, 1)));transform-origin:top left}.gemboss-pv-frame.mobile{box-sizing:border-box;width:392px;flex:0 0 392px;align-self:center;margin:16px 0;border:1px solid var(--gemboss-divider);border-radius:20px;box-shadow:var(--gemboss-shadow-overlay)}.gemboss-pv-frame.tablet{box-sizing:border-box;width:770px;flex:0 0 770px;align-self:center;margin:16px 0;border:1px solid var(--gemboss-divider);border-radius:16px;box-shadow:var(--gemboss-shadow-overlay)}.gemboss-pv-iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;background:var(--gemboss-surface);transition:opacity .18s ease}.gemboss-pv-empty{margin:auto;text-align:center;max-width:340px;display:flex;flex-direction:column;align-items:center;gap:8px}.gemboss-pv-empty-art{font-size:40px;line-height:1;opacity:.7}.gemboss-pv-empty-title{font-family:var(--gemboss-serif);font-size:18px;margin:0}.gemboss-pv-empty-sub{font-size:13px;color:var(--gemboss-text-muted);margin:0;line-height:1.5}.gemboss-pv-empty-cta{margin-top:6px;font-size:13px;font-weight:600;color:var(--gemboss-active-fg);text-decoration:none}.gemboss-pv-empty-cta:hover{text-decoration:underline}.gemboss-pv-spin{width:22px;height:22px;border:2px solid var(--gemboss-divider-soft);border-top-color:var(--gemboss-primary);border-radius:50%;animation:gemboss-spin .7s linear infinite}.gemboss-editor-resizer{flex:0 0 var(--gemboss-editor-inset);align-self:stretch}.gemboss-editor-body>.gemboss-editor-resizer{margin-inline:calc(var(--gemboss-editor-inset) / -2);z-index:1}body.ui-resizing .gemboss-pv-iframe{pointer-events:none}.gemboss-editor-chat-toggle{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--gemboss-divider);background:var(--gemboss-surface);border-radius:var(--gemboss-radius-md);cursor:pointer;font-size:14px;line-height:1;color:var(--gemboss-text-muted);transition:border-color var(--gemboss-transition-fast) ease,color var(--gemboss-transition-fast) ease}.gemboss-editor-chat-toggle:hover{border-color:var(--gemboss-primary);color:var(--gemboss-active-fg)}.gemboss-editor-chat-toggle:focus-visible{outline:2px solid var(--ui-focus, currentColor);outline-offset:2px}.gemboss-editor-chat-toggle.collapsed{border-color:var(--gemboss-primary);color:var(--gemboss-active-fg)}.gemboss-editor-chat-toggle svg{display:block}.gemboss-editor-body .gemboss-ec{transition:flex-basis .28s cubic-bezier(.16,1,.3,1),width .28s cubic-bezier(.16,1,.3,1)}body.ui-resizing .gemboss-editor-body .gemboss-ec{transition:none;will-change:flex-basis,width}body.ui-resizing .gemboss-editor-body .gemboss-pv{will-change:flex-basis}.gemboss-editor-body.is-chat-collapsed .gemboss-ec{border-width:0;overflow:hidden}.gemboss-editor-body.is-chat-collapsed>.gemboss-ec{visibility:hidden}.gemboss-editor-body.is-chat-collapsed .gemboss-editor-resizer{display:none}@media (max-width: 1000px){.gemboss-editor-body{flex-direction:column;gap:0}.gemboss-editor-body>.gemboss-ec{border-right:0;border-bottom:1px solid var(--gemboss-divider)}}@media (max-width: 1000px){.gemboss-editor-resizer{display:none}.gemboss-editor-body.is-chat-collapsed .gemboss-ec{max-height:0;min-height:0}.gemboss-editor-topbar{height:auto;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"left right" "center center";gap:8px 12px;padding:8px 12px}.gemboss-editor-tb-left{grid-area:left}.gemboss-editor-tb-right{padding-block:6px;grid-area:right;min-width:0;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}.gemboss-editor-tb-center{grid-area:center;justify-self:stretch;justify-content:flex-start;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}.gemboss-editor-tb-right::-webkit-scrollbar,.gemboss-editor-tb-center::-webkit-scrollbar{display:none}.gemboss-editor-tb-right>*{flex:0 0 auto}.gemboss-editor-tb-right>.gemboss-editor-tb-publish{position:sticky;right:0;z-index:1;box-shadow:-8px 0 8px -6px color-mix(in srgb,var(--gemboss-text) 18%,transparent)}.gemboss-editor-tb-name{display:none}.gemboss-editor-tb-ghost{padding:6px 12px;font-size:12px}.gemboss-editor-tb-publish{padding:8px 16px;font-size:13px}}.gemboss-editor-topbar:has(>.gemboss-editor-tb-center:empty) .gemboss-editor-tb-name{display:block;flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width: 1000px){.gemboss-editor-topbar:has(>.gemboss-editor-tb-center:empty){grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"left right"}.gemboss-editor-topbar:has(>.gemboss-editor-tb-center:empty)>.gemboss-editor-tb-center{display:none}.gemboss-editor-topbar:has(>.gemboss-editor-tb-center:empty)>.gemboss-editor-tb-left{width:auto;flex-wrap:nowrap;overflow:hidden}.gemboss-editor-topbar:has(>.gemboss-editor-tb-center:empty)>.gemboss-editor-tb-right{justify-self:end;justify-content:flex-end}}@media (max-width: 640px){.gemboss-pv-frame.mobile{width:100%;max-width:392px;flex:0 1 auto;margin:8px 0}.gemboss-pv-frame.tablet{width:100%;max-width:770px;flex:0 1 auto;margin:8px 0}}.gemboss-editor-preview-pane{display:flex}.gemboss-editor-mobile-tabs{display:none}.gemboss-editor-dock{position:absolute;top:0;right:0;bottom:0;width:320px;max-width:90%;z-index:5;overflow-y:auto;background:var(--gemboss-surface);border-left:1px solid var(--gemboss-divider);box-shadow:var(--gemboss-shadow-overlay)}.gemboss-editor-preview-pane:has(>.gemboss-editor-dock){position:relative}:where(.gemboss-editor-body>.gemboss-ec){position:relative;width:var(--gemboss-chat-w, 384px);flex:0 0 var(--gemboss-chat-w, 384px);display:flex;flex-direction:column;background:var(--gemboss-panel-bg);border-right:1px solid var(--gemboss-divider);overflow:hidden}:where(.gemboss-editor-preview-pane){flex:1;min-width:0}@media (max-width: 1000px){:where(.gemboss-editor-body>.gemboss-ec){width:auto;flex:0 0 auto;max-height:48%}}@media (max-width: 760px){.gemboss-editor-resizer{display:none}.gemboss-editor-body .gemboss-ec{flex:1 1 auto;width:100%;min-width:0;max-height:none;border-right:none;border-bottom:none}.gemboss-editor-body .gemboss-editor-preview-pane{flex:1 1 auto}.gemboss-editor-body[data-mobile-pane=chat] .gemboss-editor-preview-pane,.gemboss-editor-body[data-mobile-pane=preview] .gemboss-ec{display:none}.gemboss-editor-mobile-tabs{display:flex;flex:0 0 auto;gap:6px;padding:6px;padding-bottom:calc(6px + env(safe-area-inset-bottom));background:var(--gemboss-surface);border-top:1px solid var(--gemboss-divider)}.gemboss-editor-mobile-tab{flex:1 1 0;height:44px;border:0;border-radius:8px;background:transparent;color:var(--gemboss-text-muted);font:inherit;font-size:13px;font-weight:600;cursor:pointer}.gemboss-editor-mobile-tab.active{background:var(--gemboss-active-bg);color:var(--gemboss-active-fg)}}.gemboss-editor-statusbar{position:absolute;top:60px;right:14px;z-index:480;max-width:min(380px,calc(100vw - 28px));padding:8px 16px;font-size:12px;line-height:1.4;color:var(--gemboss-text-muted);background:var(--gemboss-surface);border:1px solid var(--gemboss-divider);border-radius:12px;box-shadow:var(--gemboss-shadow-raised);pointer-events:none;animation:gemboss-statusbar-in .18s cubic-bezier(.16,1,.3,1) both}.gemboss-editor-statusbar.done{background:#eaf6ef;color:#1f7a4d;border-color:var(--gemboss-success-border)}.gemboss-editor-statusbar.error{background:#fdecea;color:var(--gemboss-danger);border-color:#f3c2bb}@media (pointer: coarse),(max-width:47.9975em){.gemboss-pv-device{width:44px;height:44px;font-size:16px}}@media (pointer: coarse),(max-width:47.9975em){.gemboss-editor-back{width:44px;height:44px;font-size:20px}.gemboss-editor-chat-toggle{width:44px;height:44px;font-size:16px}}@media (pointer: coarse),(max-width:47.9975em){.gemboss-editor-tb-ghost{padding:8px 16px;min-height:44px}.gemboss-editor-tb-publish{padding:12px 20px;min-height:44px}.gemboss-pagepicker-trigger{min-height:44px}}@media (pointer: coarse){.gemboss-ec-tab{min-height:44px}}@media (max-width: 760px){.gemboss-editor-chat-toggle{display:none}}.gemboss-pageedit{position:fixed;inset:0;display:flex;flex-direction:column;background:var(--gemboss-panel-bg,#ffffff);z-index:320}.gemboss-pageedit-top{background:#fff;border-bottom:1px solid var(--gemboss-divider,#e5e7ea)}.gemboss-pageedit .gemboss-editor-tb-center{display:flex;align-items:center;gap:12px;justify-content:center}.gemboss-pageedit .gemboss-editor-tb-right{display:flex;align-items:center;gap:12px;min-width:0}.gemboss-pageedit .gemboss-editor-tb-right>:first-child{margin-inline-start:auto}.gemboss-pageedit .gemboss-editor-tb-left{--gemboss-tb-gap:12px;display:flex;align-items:center;gap:var(--gemboss-tb-gap);min-width:0}.gemboss-pageedit-title{font-family:var(--gemboss-serif,inherit);font-size:15px;font-weight:600;color:var(--gemboss-text,#1b1c1e);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:32ch}.gemboss-pageedit-notice{display:flex;flex-wrap:wrap;align-items:center;gap:12px;flex:0 0 auto;padding:12px 16px;background:var(--gemboss-surface);border-bottom:1px solid var(--gemboss-divider);color:var(--gemboss-text);font-size:13px;line-height:1.5}.gemboss-pageedit-notice span{flex:1 1 240px;min-width:0}.gemboss-pageedit-notice button{min-height:44px;padding:8px 12px;flex:0 0 auto;border:1px solid var(--gemboss-divider);border-radius:8px;background:var(--gemboss-surface);color:var(--gemboss-text);cursor:pointer}@media (max-width:900px){.gemboss-pageedit-top{height:auto;grid-template-columns:minmax(0,1fr);grid-template-areas:"left" "right" "center";gap:8px;padding:8px 12px}.gemboss-pageedit-top .gemboss-editor-tb-right{flex-wrap:wrap;overflow:visible}.gemboss-pageedit-top .gemboss-editor-tb-right button{min-height:44px}.gemboss-pageedit .gemboss-editor-tb-left{width:100%;overflow:hidden;flex-wrap:wrap}.gemboss-pageedit .gemboss-editor-tb-right,.gemboss-pageedit .gemboss-editor-tb-center{justify-self:stretch;justify-content:flex-start;max-width:100%;overflow-x:auto}.gemboss-pageedit-top .gemboss-editor-tb-center{flex-wrap:wrap;row-gap:8px;overflow:visible}}.gemboss-sec-type{font-size:11px;font-weight:700;letter-spacing:.02em;padding:2px 8px;border-radius:12px;background:#f1efe9;color:var(--gemboss-text-muted);text-transform:capitalize}.gemboss-sec-insert-wrap{position:relative}.gemboss-sec-insert-menu{position:absolute;top:42px;right:0;width:280px;max-height:60vh;overflow-y:auto;padding:6px;z-index:80}.gemboss-sec-insert-item{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;border:0;background:transparent;border-radius:8px;cursor:pointer;text-align:left;font-size:13px;color:var(--gemboss-text,#1b1c1e);transition:background .12s ease,color .12s ease}.gemboss-sec-insert-item:hover{background:var(--gemboss-hover,rgba(0,0,0,.04))}.gemboss-sec-insert-item:focus-visible{outline:2px solid var(--ui-focus,currentColor);outline-offset:-2px;background:var(--gemboss-hover,rgba(0,0,0,.04))}.gemboss-sec-insert-item:disabled{opacity:.6;cursor:default}.gemboss-sec-insert-item:disabled:hover{background:transparent}.gemboss-sec-insert-cat{font-size:var(--gemboss-fs-caption);color:var(--gemboss-text-muted,#686b71);text-transform:capitalize}.gemboss-sec-insert-empty{display:block;padding:16px;font-size:13px;color:var(--gemboss-text-muted,#686b71);text-decoration:none}.gemboss-pageedit-scope{font-size:var(--gemboss-fs-caption);color:var(--gemboss-text-muted,#686b71);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}@media (max-width:1200px){.gemboss-pageedit-scope{display:none}}.gemboss-pageedit-pv{flex:1;min-width:0;background:var(--gemboss-preview-canvas);display:flex;justify-content:center;overflow:auto;position:relative}.gemboss-pageedit-pv .gemboss-pv-frame iframe{width:100%;height:100%;border:0;background:#fff;display:block}.gemboss-pageedit-chip{display:flex;align-items:center;gap:8px;margin:0 12px 8px;padding:6px 12px;border-radius:8px;background:var(--gemboss-active-bg);border:1px solid var(--gemboss-divider);font-size:12px;color:var(--gemboss-active-fg)}.gemboss-pageedit-chip button{flex:none;display:inline-flex;align-items:center;justify-content:center;margin-left:auto;border:0;background:transparent;color:var(--gemboss-active-fg);cursor:pointer;font-size:12px;min-height:24px;min-width:24px;padding:0 4px}.gemboss-pageedit-chip>svg{flex:none}.gemboss-pageedit-chip button+button{margin-left:0}.gemboss-pageedit-standing{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:8px 16px;background:#b07d1817;border-bottom:1px solid rgba(176,125,24,.28);font-size:13px;line-height:1.5;color:#7a5710}.gemboss-pageedit-standing code{font-size:12px;background:#b07d1824;border-radius:4px;padding:2px 4px}.gemboss-pageedit-standing button{margin-left:auto;flex:0 0 auto;border:1px solid rgba(176,125,24,.4);background:#fff;color:#7a5710;border-radius:8px;padding:4px 12px;font:inherit;font-weight:600;cursor:pointer}.gemboss-pageedit-standing button:disabled{opacity:.6;cursor:default}.gemboss-picker-backdrop{position:fixed;inset:0;background:#1f1e1d38;z-index:70}.gemboss-picker-head{flex:0 0 auto;height:52px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid var(--gemboss-divider,#e5e7ea);font-weight:600;font-size:15px}.gemboss-picker-head button{border:0;background:transparent;font-size:15px;cursor:pointer;color:var(--gemboss-text-muted,#686b71)}.gemboss-picker-empty{padding:20px;text-align:center;color:var(--gemboss-text-muted,#686b71);font-size:13px}.gemboss-layers{position:fixed;top:0;left:0;bottom:0;width:300px;background:#fff;border-right:1px solid var(--gemboss-divider,#e5e7ea);box-shadow:8px 0 30px #1f1e1d1f;z-index:71;display:flex;flex-direction:column}.gemboss-layers-list{flex:1;min-height:0;overflow-y:auto;padding:8px 12px;display:flex;flex-direction:column;gap:4px}.gemboss-layer{display:flex;align-items:center;gap:4px;border:1px solid transparent;border-radius:8px;padding:0 4px 0 6px}.gemboss-layer:hover{background:var(--gemboss-hover,rgba(0,0,0,.04))}.gemboss-layer.is-sel{border-color:var(--gemboss-primary, #1b1c1e);background:var(--gemboss-active-bg)}.gemboss-layer-main{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:1px;background:transparent;border:0;cursor:pointer;text-align:left;padding:8px 4px}.gemboss-layer-type{font-size:13px;font-weight:600;color:var(--gemboss-text,#1b1c1e)}.gemboss-layer-type,.gemboss-pageedit-chip>span{overflow-wrap:anywhere}.gemboss-layer-head{font-size:var(--gemboss-fs-caption);color:var(--gemboss-text-muted,#686b71);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.gemboss-layer-acts{display:flex;gap:0;flex:0 0 auto}.gemboss-layer-acts button{width:26px;height:26px;border:0;background:transparent;border-radius:6px;cursor:pointer;color:var(--gemboss-text-muted,#686b71);font-size:13px;line-height:1}.gemboss-layer-acts button:hover:not(:disabled){background:var(--gemboss-hover,rgba(0,0,0,.07))}.gemboss-layer-acts button:disabled{opacity:.28;cursor:default}.gemboss-layer-del:hover:not(:disabled){color:#c0392b}@media (pointer: coarse){.gemboss-layer{flex-wrap:wrap}.gemboss-layer-acts{margin-left:auto}.gemboss-layer-acts button{width:44px;height:44px;font-size:15px}.gemboss-layer-main{flex:1 1 140px;min-height:44px;justify-content:center}}.gemboss-layer-grip{flex:0 0 auto;width:12px;margin-right:-2px;color:var(--gemboss-text-muted,#686b71);font-size:11px;letter-spacing:-2px;line-height:1;text-align:center;cursor:grab;user-select:none}.gemboss-layer[draggable=true]{cursor:grab}.gemboss-layer.is-dragging{opacity:.4}.gemboss-layer[data-drop=before]{box-shadow:0 -2px 0 var(--gemboss-primary, #1b1c1e)}.gemboss-layer[data-drop=after]{box-shadow:0 2px 0 var(--gemboss-primary, #1b1c1e)}.gemboss-layer.is-hidden .gemboss-layer-main{opacity:.5}.gemboss-layer-acts .gemboss-layer-eye{display:inline-grid;place-items:center}.gemboss-layer-acts .gemboss-layer-eye[aria-pressed=true]{color:var(--gemboss-text,#1b1c1e)}.gemboss-layers[hidden],.gemboss-settings[hidden],.gemboss-picker-backdrop[hidden]{display:none}.gemboss-settings{position:fixed;top:0;right:0;bottom:0;width:min(380px,100%);box-sizing:border-box;background:#fff;border-left:1px solid var(--gemboss-divider,#e5e7ea);box-shadow:-8px 0 30px #1f1e1d1f;z-index:71;display:flex;flex-direction:column}.gemboss-settings-body{flex:1;min-height:0;overflow-y:auto;padding:16px 20px;display:flex;flex-direction:column;gap:12px}.gemboss-settings-grouphead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:4px;padding-top:16px;border-top:1px solid var(--gemboss-divider,#e5e7ea)}.gemboss-settings-grouphead>span{font-size:var(--gemboss-fs-caption);font-weight:700;color:var(--gemboss-text,#1b1c1e)}.gemboss-settings-gen{border:1px solid var(--gemboss-divider,#e5e7ea);background:var(--gemboss-surface,#fff);border-radius:999px;padding:4px 12px;font-size:12px;font-weight:600;font-family:inherit;color:var(--gemboss-text,#1b1c1e);cursor:pointer;white-space:nowrap}.gemboss-settings-gen:hover:not(:disabled){background:var(--gemboss-hover,#eceef2)}.gemboss-settings-gen:disabled{opacity:.55;cursor:default}.gemboss-settings-note{margin:0 0 4px;font-size:var(--gemboss-fs-caption);color:var(--gemboss-text-muted);line-height:1.5}.gemboss-settings-error{margin:0 0 8px;padding:8px 12px;border-radius:8px;font-size:var(--gemboss-fs-caption);line-height:1.45;color:#8a1c1c;background:#fdecec;border:1px solid #f5c2c2}textarea.gemboss-ei-inp.gemboss-mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;line-height:1.5}.gemboss-ei-prefix{flex:none;white-space:nowrap;color:var(--gemboss-text-muted,#686b71)}.gemboss-ei-pickbtn{display:flex;align-items:center;gap:8px;width:100%;text-align:left;cursor:pointer}.gemboss-ei-pickbtn[aria-expanded=true]{border-color:var(--gemboss-field-line-active)}.gemboss-ei-pickbtn-pic{display:inline-flex;flex:none;min-width:20px;height:20px;align-items:center;justify-content:center}.gemboss-ei-pickbtn-pic :is(svg,img){width:20px;height:20px}.gemboss-ei-pickbtn-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gemboss-ei-pickbtn-chev{flex:none;color:var(--gemboss-text-muted,#686b71)}.gemboss-settings-foot{flex:0 0 auto;display:flex;justify-content:flex-end;gap:12px;padding:12px 20px;border-top:1px solid var(--gemboss-divider,#e5e7ea)}.gemboss-settings-cancel{background:transparent;border:1px solid var(--gemboss-divider,#e5e7ea);border-radius:8px;font-size:13px;font-weight:600;padding:8px 16px;cursor:pointer;color:var(--gemboss-text,#1b1c1e)}.gemboss-settings-save{background:var(--gemboss-primary, #1b1c1e);color:#fff;border:0;border-radius:8px;font-size:13px;font-weight:700;padding:8px 20px;cursor:pointer}.gemboss-settings-save:disabled{opacity:.6;cursor:default}.gemboss-pageedit .gemboss-pv-device{flex-shrink:0}@media (pointer: coarse),(max-width:47.9975em){.gemboss-pageedit .gemboss-ec-dock-body :is(button:where(:not(.gemboss-ei-help)),input,select){min-height:44px}.gemboss-pageedit-chip button{min-height:44px;min-width:44px}}.gemboss-page-draft-status{flex:0 0 auto;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;padding:8px 12px;border-radius:8px;background:var(--gemboss-surface,#fff);color:var(--gemboss-text,#1b1c1e);font-size:12px;line-height:1.5;box-shadow:0 1px 6px #0001}.gemboss-page-draft-status button{min-height:44px;min-width:44px;padding:8px 12px;border:1px solid var(--gemboss-divider);border-radius:6px;background:var(--gemboss-surface,#fff);cursor:pointer}.gemboss-page-draft-status button:hover{background:var(--gemboss-hover,#eceef2)}.gemboss-page-draft-status button:focus-visible{outline:2px solid var(--ui-focus,currentColor);outline-offset:2px}.gemboss-page-draft-status[data-page-preview-state=ready]{pointer-events:none}.gemboss-pageedit .gemboss-pageedit-pv{flex-direction:column;min-height:0;justify-content:flex-start}.gemboss-page-draft-stage{flex:1;min-height:0;position:relative;overflow:hidden;display:flex;justify-content:center}@media (max-width:1000px){.gemboss-pageedit .gemboss-editor-body>.gemboss-ec{flex:0 0 auto;height:44%;min-height:min(520px,76%);max-height:76%}}.gemboss-ei{position:absolute;top:12px;right:12px;z-index:6;width:320px;max-width:calc(100% - 24px);display:flex;flex-direction:column;max-height:calc(100% - 24px);background:var(--gemboss-surface);border:1px solid var(--gemboss-divider);border-radius:var(--gemboss-radius-xl);box-shadow:var(--gemboss-shadow-overlay);overflow:hidden}.gemboss-ei--docked{position:static;top:auto;right:auto;width:100%;max-width:none;height:100%;max-height:none;border:0;border-radius:0;box-shadow:none;background:transparent;flex:1;min-height:0}.gemboss-ei-head{display:flex;align-items:center;gap:8px;padding:12px;border-bottom:1px solid var(--gemboss-divider)}.gemboss-ec>.gemboss-ei-head{padding-inline:var(--gemboss-ec-inset,12px)}.gemboss-ec .gemboss-ei--docked .gemboss-ei-head{padding-inline:var(--gemboss-ec-inset,12px)}.gemboss-ec .gemboss-ei--docked .gemboss-ei-tabs{margin-inline:var(--gemboss-ec-inset,12px)}:is(.gemboss-settings-body,.gemboss-ec-dock-body) .gemboss-ei-tabs{margin-inline:0}.gemboss-ec .gemboss-ei--docked .gemboss-ei-pane{padding-inline:var(--gemboss-ec-inset,16px)}.gemboss-ei-title{font-size:var(--gemboss-fs-body);font-weight:700;line-height:20px;min-width:0;overflow:hidden;overflow-wrap:break-word}.gemboss-ei-title small{display:block;margin-top:2px;font-weight:500;font-size:var(--gemboss-fs-caption);line-height:16px;color:var(--gemboss-text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gemboss-ei-act,.gemboss-ei-x{margin-left:auto;width:26px;height:26px;flex:none;border:0;background:transparent;cursor:pointer;color:var(--gemboss-text-muted);border-radius:6px;display:grid;place-items:center;font-size:14px}.gemboss-ei-x{margin-left:2px;font-size:13px}.gemboss-ei-act:hover,.gemboss-ei-x:hover{background:var(--gemboss-hover);color:var(--gemboss-text)}.gemboss-ei-act:disabled{opacity:.5;cursor:default}.gemboss-ei-tabs{display:flex;gap:2px;margin:8px 12px 0;background:var(--gemboss-active-bg);padding:4px;border-radius:8px}.gemboss-ei-tab{flex:1;border:0;background:transparent;cursor:pointer;color:var(--gemboss-text-muted);font-weight:550;font-size:13px;line-height:20px;padding:4px;border-radius:6px;display:flex;align-items:center;justify-content:center;gap:6px}.gemboss-ei-tab.on{background:var(--gemboss-surface);color:var(--gemboss-text);box-shadow:var(--gemboss-shadow-resting)}.gemboss-ei-tabs.is-flush{margin:0}.gemboss-ei-tabs.has-hints{container-type:inline-size}.gemboss-ei-tab-text{display:flex;flex-direction:column;align-items:center;min-width:0}.gemboss-ei-tab-hint{font-size:var(--gemboss-fs-micro,11px);font-weight:450;line-height:1.3;color:var(--gemboss-text-muted);text-align:center;text-wrap:balance}@container (max-width:300px){.gemboss-ei-tab-hint{display:none}}.gemboss-ei-body{flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin;padding:2px 0 4px}.gemboss-ei-body::-webkit-scrollbar{width:9px}.gemboss-ei-body::-webkit-scrollbar-thumb{background:#1f1e1d33;border-radius:6px;border:2px solid var(--gemboss-surface);background-clip:content-box}.gemboss-ei-pane{padding:4px 16px 6px}.gemboss-ei-note{margin:0 0 8px;padding:8px 12px;border-radius:8px;background:var(--gemboss-hover,#eceef2);border:1px solid var(--gemboss-divider,#e5e7ea);color:var(--gemboss-text-muted,#686b71);font-size:12px;line-height:1.45}.gemboss-ec-dock-body,.gemboss-ei,.gemboss-ei-grp,.gemboss-ei-group{--gemboss-ei-gap-part:4px;--gemboss-ei-gap-setting:16px;--gemboss-ei-gap-sub:24px;--gemboss-ei-gap-group:16px;--gemboss-ei-gap-head:8px}.gemboss-ei-grp{border-bottom:1px solid var(--gemboss-divider-soft);padding:var(--gemboss-ei-gap-group) 0}.gemboss-ei-grp:last-child{border-bottom:none}.gemboss-ei-gh{font-size:13px;line-height:20px;color:var(--gemboss-text);font-weight:650;margin-bottom:var(--gemboss-ei-gap-head);display:flex;align-items:center;gap:6px;width:100%;border:0;background:transparent;cursor:pointer;text-align:left;padding:0;-webkit-appearance:none}.gemboss-ei-chev{order:1;flex:none;margin:0 4px 0 auto;width:6px;height:6px;font-size:0;border:solid var(--gemboss-text-muted);border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}.gemboss-ei-gh[data-open=closed]>.gemboss-ei-chev{transform:rotate(-45deg)}.gemboss-ei-gh-note{margin-left:6px;font-size:12px;font-weight:450;opacity:.55}.gemboss-ei-gh[data-open=closed]{margin-bottom:0}.gemboss-ei-grp:where(:has(>.gemboss-ei-gh[data-open=closed])){padding:8px 0}@media (pointer: coarse),(max-width:47.9975em){.gemboss-ei-grp:where(:has(>.gemboss-ei-gh[data-open=closed])){padding:2px 0}.gemboss-ec-dock-body,.gemboss-ei,.gemboss-ei-grp,.gemboss-ei-group{--gemboss-ei-gap-setting:12px;--gemboss-ei-gap-sub:20px;--gemboss-ei-gap-group:12px;--gemboss-ei-gap-head:4px}}.gemboss-ei-grp>.gemboss-ei-gh[data-open=closed]~*{display:none}.gemboss-ei-fld{margin-bottom:var(--gemboss-ei-gap-setting)}.gemboss-ei-fld:last-child{margin-bottom:0}.gemboss-ei-fld:has(+.gemboss-ei-rule){margin-bottom:0}.gemboss-ei-group>.gemboss-ei-hint+button{margin-top:var(--gemboss-ei-gap-setting)}.gemboss-ei-grp>:not(.gemboss-ei-gh)+:not(.gemboss-ei-hint){margin-top:var(--gemboss-ei-gap-setting)}.gemboss-ei-grp>[data-ei-head]+:not(.gemboss-ei-hint){margin-top:var(--gemboss-ei-gap-head)}.gemboss-ei-grp>:not(.gemboss-ei-gh)+[data-ei-sub]{margin-top:var(--gemboss-ei-gap-sub)}.gemboss-ei-grp>[data-ei-sub=line]+[data-ei-sub=line]{margin-top:var(--gemboss-ei-gap-part)}.gemboss-ei-grp [data-ei-sub]>*+*{margin-top:var(--gemboss-ei-gap-setting)}.gemboss-ei-grp [data-ei-sub]>[data-ei-head]+*{margin-top:var(--gemboss-ei-gap-head)}.gemboss-ei-fld>label:where(:not(.gemboss-field)),.gemboss-ei-lbl{display:block;font-size:13px;font-weight:500;color:var(--gemboss-text);margin-bottom:var(--gemboss-ei-gap-part)}.gemboss-ei-lbl>label{margin:0}.gemboss-ei-help{display:none}:is(.gemboss-ei-grp,.gemboss-ei-group) :is(.gemboss-ei-fld>label:where(:not(.gemboss-field)),.gemboss-ei-lbl){font-weight:450;color:var(--gemboss-text-muted)}:is(.gemboss-ei-grp,.gemboss-ei-group) .gemboss-ei-lbl{display:flex;gap:4px;align-items:start}.gemboss-ei-fld.gemboss-ei-fld--row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:0 8px;align-items:start}.gemboss-ei-fld.gemboss-ei-fld--row>:not(:first-child){grid-column:2}.gemboss-ei-fld.gemboss-ei-fld--row>:first-child{margin:0;padding-top:6px}.gemboss-ei-fld.gemboss-ei-fld--row>.gemboss-ei-hint{grid-column:1/-1}.gemboss-ei-fld>.gemboss-ei-hint.gemboss-ei-count{text-align:end}.gemboss-ei-fld.gemboss-ei-fld--row>.gemboss-ei-hint.gemboss-ei-count{grid-column:2}@media (max-width:22.4975em){.gemboss-ei-fld.gemboss-ei-fld--row:has(>.ui-seg>:nth-child(4)){grid-template-columns:minmax(0,1fr)}.gemboss-ei-fld.gemboss-ei-fld--row:has(>.ui-seg>:nth-child(4))>*{grid-column:1}}:is(.gemboss-ei-grp,.gemboss-ei-group) .gemboss-ei-help{display:block;flex:none;width:16px;height:16px;padding:0;border:0;border-radius:50%;box-shadow:inset 0 0 0 1px;background:none;color:inherit;font:650 10px/16px var(--gemboss-font-sans);cursor:help;position:relative}.gemboss-ei-help:after{content:"";position:absolute;inset:-4px;border-radius:50%}.gemboss-ei-help:is(:hover,[aria-expanded=true]){color:var(--gemboss-text)}:is(.gemboss-ei-grp,.gemboss-ei-group) .gemboss-ei-fld:has(>.gemboss-ei-lbl>.gemboss-ei-help[aria-expanded=false])>.gemboss-ei-help-text{display:none}.gemboss-ei-lbl:has(>.gemboss-ei-lbl-aside){display:flex;align-items:center;gap:4px}.gemboss-ei-lbl-aside{margin-left:auto}.gemboss-ei-inp{width:100%}.gemboss-ei-mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;line-height:1.5}select.gemboss-ei-inp{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--gemboss-text-muted) 50%),linear-gradient(135deg,var(--gemboss-text-muted) 50%,transparent 50%);background-position:calc(100% - 15px) center,calc(100% - 10px) center;background-size:5px 5px,5px 5px;background-repeat:no-repeat;padding-right:32px}.gemboss-ei-swatches{display:flex;gap:8px}.gemboss-ei-sw{width:30px;height:30px;border-radius:8px;border:2px solid transparent;cursor:pointer;padding:0;box-shadow:inset 0 0 0 1px #1f1e1d1a}.gemboss-ei-sw.on{border-color:var(--gemboss-text);box-shadow:0 0 0 2px var(--gemboss-surface),0 0 0 3px var(--gemboss-primary)}.gemboss-ei-sw:disabled{cursor:default;opacity:.7}@media (pointer: coarse),(max-width:47.9975em){.gemboss-ei-tab,.gemboss-ei-gh{min-height:44px}.gemboss-ei-sw{width:44px;height:44px}.gemboss-ei-swatches{flex-wrap:wrap}}@media (pointer: coarse),(max-width:47.9975em){.gemboss-ei-fld :is(input:not([type=checkbox]):not([type=radio]),select,button:not(.gemboss-ei-help)){min-height:44px}.gemboss-ei-fld :is(button:not(.gemboss-ei-help),input[type=color]){min-width:44px}.gemboss-ei-help:after{inset:-14px}}.gemboss-ei-apply{margin-top:2px;background:var(--gemboss-primary);color:#fff;border:0;border-radius:8px;font-size:var(--gemboss-fs-caption);font-weight:700;padding:8px 16px;cursor:pointer}.gemboss-ei-apply:hover{background:var(--gemboss-primary-dark)}.gemboss-ei-apply:disabled{opacity:.6;cursor:default}.gemboss-ei-hint{margin:var(--gemboss-ei-gap-part) 0 0;font-size:12px;line-height:16px;color:var(--gemboss-text-muted)}.gemboss-ei-empty{padding:24px 16px;text-align:center;font-size:var(--gemboss-fs-caption);color:var(--gemboss-text-muted);display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}.gemboss-ei-foot{flex:0 0 auto;display:flex;align-items:center;gap:8px;padding:8px 16px;border-top:1px solid var(--gemboss-divider);font-size:11px;color:var(--gemboss-text-muted)}.gemboss-ei-savedot{width:6px;height:6px;border-radius:50%;background:var(--gemboss-success);box-shadow:0 0 0 3px #2e8b572e}.gemboss-ei-savedot.busy{background:var(--gemboss-primary);box-shadow:0 0 0 3px var(--gemboss-primary-soft)}.gemboss-ei-foot.is-error{color:var(--gemboss-danger)}.gemboss-ei-foot.is-error .gemboss-ei-savedot{background:var(--gemboss-danger);box-shadow:0 0 0 3px #d72c0d29}.gemboss-ei-block{border:1px solid var(--gemboss-divider);border-radius:12px;padding:12px;margin-bottom:12px;background:var(--gemboss-panel-bg)}.gemboss-ei-block:last-child{margin-bottom:0}.gemboss-ei-block-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;font-size:12px;font-weight:700;color:var(--gemboss-text)}.gemboss-ei-block-x{border:0;background:transparent;cursor:pointer;color:var(--gemboss-text-muted);width:22px;height:22px;border-radius:6px;font-size:11px;flex:none}.gemboss-ei-block-x:hover{background:var(--gemboss-hover);color:var(--gemboss-danger-strong)}.gemboss-ei-block-x:disabled{opacity:.5;cursor:default}.gemboss-ei-block .gemboss-ei-inp{background:var(--gemboss-surface)}.gemboss-ei-img{display:flex;gap:8px;align-items:flex-start;border-radius:8px}.gemboss-ei-img-thumb{flex:none;width:56px;height:56px;border-radius:8px;border:1px solid var(--gemboss-divider);--gemboss-thumb:none;background:var(--gemboss-thumb) center/cover no-repeat var(--gemboss-panel-bg);display:grid;place-items:center;color:var(--gemboss-text-muted);font-size:16px}.gemboss-ei-img-ctl{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.gemboss-ei-img-actions{display:flex;flex-wrap:wrap;gap:6px}.gemboss-ei-img-info{display:flex;flex-direction:column;min-width:0}.gemboss-ei-img-name{font-size:13px;line-height:20px;color:var(--gemboss-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gemboss-ei-img-meta{font-size:12px;line-height:16px;color:var(--gemboss-text-muted);min-height:16px}.gemboss-ei-img-drop{font-size:13px;line-height:20px;color:var(--gemboss-text-muted)}.gemboss-ei-img[data-over]{outline:2px dashed var(--gemboss-accent);outline-offset:4px}.gemboss-ei-gen{display:flex;flex-direction:column;gap:8px;margin-top:8px;padding:8px;border:1px solid var(--gemboss-divider);border-radius:12px;background:var(--gemboss-panel-bg)}.gemboss-ei-gen .gemboss-ei-apply{align-self:flex-start;display:inline-flex;align-items:center;gap:6px}.gemboss-ei-gen .gemboss-narr-spin{width:11px;height:11px}.gemboss-ei-oos{margin:4px 16px 12px;padding:12px;border:1px solid var(--gemboss-divider);border-left:3px solid var(--gemboss-text-muted);border-radius:8px;background:var(--gemboss-panel-bg)}.gemboss-ei-oos-h{font-size:var(--gemboss-fs-micro);letter-spacing:.1em;text-transform:uppercase;color:var(--gemboss-text-muted);font-weight:700;margin-bottom:8px}.gemboss-ei-oos p{margin:0 0 6px;font-size:12px;color:var(--gemboss-text-muted);line-height:1.45}.gemboss-ei-oos p:last-child{margin-bottom:0}.gemboss-ei-oos b{color:var(--gemboss-text);font-weight:600}.gemboss-ei-edgebox{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:6px}.gemboss-ei-value{display:grid;gap:8px}.gemboss-ei-value-row{display:flex;align-items:center;gap:12px}.gemboss-ei-value--words>.ui-seg.ui-seg--fill>.is-text{flex:1 1 auto;padding:0 8px}@media (max-width:47.9975em){.gemboss-ei-value--words>.ui-seg.ui-seg--fill>.is-text{min-width:44px}}.gemboss-ei-value-box{flex:0 0 7em}.gemboss-ei-value-box input{text-align:right;font-variant-numeric:tabular-nums}.gemboss-ei-value-row .gemboss-ei-range{flex:1 1 auto;min-width:0}.gemboss-ei-fld.gemboss-ei-fld--row>.gemboss-ei-value{display:contents}.gemboss-ei-fld.gemboss-ei-fld--row>.gemboss-ei-value>.gemboss-ei-value-row{grid-column:2}.gemboss-ei-fld.gemboss-ei-fld--row>.gemboss-ei-value>:not(.gemboss-ei-value-row){grid-column:1/-1;margin-top:var(--gemboss-ei-gap-part)}.gemboss-ei-edge{display:flex;flex-direction:column;align-items:center;gap:4px}.gemboss-ei-edge input{width:100%;text-align:center;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-variant-numeric:tabular-nums}.gemboss-ei-edge span{font-size:var(--gemboss-fs-micro);letter-spacing:.06em;color:var(--gemboss-text-muted);font-weight:700}.gemboss-ei-edge-scrub{align-self:stretch;min-height:24px;margin-top:4px;display:flex;align-items:center;justify-content:center;border-radius:var(--gemboss-radius-sm);cursor:ew-resize;user-select:none;touch-action:pan-y}@media (hover: hover){.gemboss-ei-edge-scrub:not([aria-disabled]):hover{background:var(--gemboss-hover);color:var(--gemboss-text)}}.gemboss-ei-edge-scrub[aria-disabled]{cursor:default}.gemboss-ec-dock-body{flex:1;min-height:0;overflow-y:auto;padding:var(--gemboss-ec-inset,12px)}.gemboss-ei-group{padding:var(--gemboss-ei-gap-group) 0}.gemboss-ei-group+.gemboss-ei-group{border-top:1px solid var(--gemboss-divider)}.gemboss-ei-grouphead{margin:0 0 12px;font-size:var(--gemboss-fs-micro,11px);font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--gemboss-text-muted)}.gemboss-ei-color{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.gemboss-ei-color-why{display:block;flex:1 0 100%;margin:-4px 0 0;font-size:12px;line-height:16px;color:var(--gemboss-text-muted)}.gemboss-ei-color .gemboss-ei-inp{flex:1;min-width:0}.gemboss-ei-swatch{flex:none;width:32px;height:32px;padding:0;border:1px solid var(--gemboss-divider);border-radius:8px;background:var(--gemboss-surface);cursor:pointer}.gemboss-ei-swatch::-webkit-color-swatch-wrapper{padding:2px}.gemboss-ei-swatch::-webkit-color-swatch{border:none;border-radius:6px}.gemboss-ei-swatch[data-empty]::-webkit-color-swatch{background-image:linear-gradient(to top right,#0000 46%,var(--gemboss-text-muted,#686b71) 46% 54%,#0000 54%)}.gemboss-ei-swatch:disabled{cursor:default;opacity:.7}:is(.gemboss-ei-fld,.gemboss-ei-lbl)>label>.gemboss-ei-rangeval{float:right;font-weight:700;color:var(--gemboss-text);font-variant-numeric:tabular-nums}.gemboss-ei-range{width:100%;margin-inline:0;accent-color:var(--gemboss-primary);cursor:pointer}.gemboss-ei-range:disabled{cursor:default;opacity:.7}@media (max-width:760px){.gemboss-ei{position:static;width:auto;max-width:none;max-height:none;margin:8px;box-shadow:var(--gemboss-shadow-raised)}}.gemboss-ei-tree{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:1px}.gemboss-ei-tnode{display:flex;align-items:center;gap:4px;flex-wrap:wrap;border-radius:6px;padding-right:4px}.gemboss-ei-tnode:hover{background:var(--gemboss-surface)}.gemboss-ei-tnode.on{background:var(--gemboss-primary-soft,var(--gemboss-surface));box-shadow:inset 2px 0 0 var(--gemboss-primary)}.gemboss-ei-tname{flex:1;min-width:0;display:flex;align-items:baseline;gap:6px;border:0;background:transparent;cursor:pointer;text-align:left;padding:6px 2px;color:var(--gemboss-text);font-size:12px;font-weight:600}.gemboss-ei-tname small{font-weight:400;font-size:10px;color:var(--gemboss-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gemboss-ei-tacts{flex:none;display:flex;gap:1px;opacity:0;transition:opacity .12s}.gemboss-ei-tnode:hover .gemboss-ei-tacts,.gemboss-ei-tnode.on .gemboss-ei-tacts,.gemboss-ei-tacts:focus-within{opacity:1}.gemboss-ei-tacts button{border:0;background:transparent;cursor:pointer;color:var(--gemboss-text-muted);font-size:11px;line-height:1;padding:4px 6px;border-radius:6px}.gemboss-ei-tacts button:hover:not(:disabled){background:var(--gemboss-surface);color:var(--gemboss-text)}.gemboss-ei-tacts button:disabled{opacity:.3;cursor:default}.gemboss-ei-tadd{flex-basis:100%;padding:4px 2px 6px}.gemboss-editor-topbar--guest{grid-template-columns:1fr auto 1fr}.gemboss-guest-mark{flex:0 0 auto;display:block}.gemboss-guest-brand{font-weight:700;letter-spacing:-.02em;font-size:15px;margin-left:8px}.gemboss-guest-note{font-size:var(--gemboss-fs-caption);color:var(--gemboss-text-muted);border:1px solid var(--gemboss-divider-soft);border-radius:999px;padding:4px 12px;white-space:nowrap}.gemboss-editor-topbar--guest .gemboss-editor-tb-right{display:flex;align-items:center;gap:16px;justify-content:flex-end}.gemboss-guest-signin{font-size:var(--gemboss-fs-body);font-weight:600;color:var(--gemboss-text-muted);text-decoration:none}.gemboss-guest-signin:hover{color:var(--gemboss-text)}.gemboss-guest-keep{border:0;border-radius:999px;background:var(--gemboss-primary);color:var(--gemboss-on-primary);cursor:pointer;font:inherit;font-size:var(--gemboss-fs-caption);font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:8px 20px;white-space:nowrap}.gemboss-guest-keep:hover{background:var(--gemboss-primary-dark)}@media (max-width: 720px){.gemboss-guest-note{display:none}}@media (max-width: 1000px){.gemboss-editor-topbar--guest{grid-template-columns:auto minmax(0,1fr)}}@media (max-width: 460px){.gemboss-guest-brand{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.gemboss-editor-topbar--guest .gemboss-editor-tb-right{gap:8px}.gemboss-editor-topbar--guest .gemboss-guest-keep{padding-inline:12px}}@media (max-width: 400px){.gemboss-editor-topbar--guest{padding-inline:8px;column-gap:8px}}.gemboss-ei-check{display:inline-flex;align-items:center;gap:8px;min-height:44px;max-width:100%;overflow-wrap:break-word;cursor:pointer;color:var(--gemboss-text)}.gemboss-ei-check[data-disabled]{opacity:.5;cursor:not-allowed}.gemboss-ei-checkbox{flex:none;width:18px;height:18px;margin:0;accent-color:var(--ui-accent,#1b1c1e);cursor:inherit}.gemboss-ei-checkbox:focus-visible{outline:2px solid var(--ui-focus,#1b1c1e);outline-offset:2px}.gemboss-ei-check-words{min-width:0}.gemboss-ei-check--bare{min-width:44px;justify-content:center}.gemboss-ei-choices{display:flex;flex-direction:column;gap:6px;min-width:0}.gemboss-ei-choice{display:flex;flex-shrink:0;align-items:center;gap:12px;min-height:44px;padding:8px 12px;box-sizing:border-box;border-radius:8px;border:1px solid var(--gemboss-divider,#e5e7ea);cursor:pointer;color:var(--gemboss-text)}.gemboss-ei-choice:hover{background:var(--gemboss-hover)}.gemboss-ei-choice[data-checked]{border-color:var(--gemboss-text,#1b1c1e)}.gemboss-ei-choice[data-disabled]{cursor:not-allowed}.gemboss-ei-choice[data-disabled]>:is(.gemboss-ei-choice-input,.gemboss-ei-choice-pic),.gemboss-ei-choice[data-disabled] .gemboss-ei-choice-name{opacity:.55}.gemboss-ei-choice:has(>.gemboss-ei-choice-input:focus-visible){outline:2px solid var(--ui-focus,currentColor);outline-offset:2px}.gemboss-ei-choice-input{flex:none;inline-size:18px;block-size:18px;margin:0;accent-color:var(--ui-accent,#1b1c1e);cursor:inherit}.gemboss-ei-choice-words{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.gemboss-ei-choice-name{font-size:13px;font-weight:600}.gemboss-ei-choice-line{font-size:12px;color:var(--gemboss-text-muted);overflow-wrap:anywhere}.gemboss-ei-choice-pic{flex:none;display:inline-flex}.gemboss-ei-secret{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}.gemboss-ei-secret-box{flex:1 1 96px;min-width:0}.gemboss-ei-secret-box[type=text]{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.gemboss-ei-secret-acts{display:flex;gap:8px;flex:none}.gemboss-ei-secret--saved{justify-content:space-between}.gemboss-ei-secret-said{min-width:0;color:var(--gemboss-text)}.gemboss-ei-secret-tail{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
@@ -15,8 +15,10 @@ import { useEffect, useId, useMemo, useState } from "react";
15
15
  import type React from "react";
16
16
  import { EditorBack, EditorFrame, EditorSaveState, EditorTopbar, type EditorPane } from "../editor/frame";
17
17
  import { EditorPaneTabs } from "../editor/panes";
18
- import { Field, PanelHeader, PanelTabs } from "../editor/panel";
19
- import { Seg } from "../editor/controls";
18
+ import { Field, InspectorGroup, PanelHeader, PanelTabs } from "../editor/panel";
19
+ import { FieldControl } from "../editor/field-control";
20
+ import { PartsFrame, type FramePart } from "../editor/field-frame";
21
+ import type { FieldSpec } from "../editor/field-spec";
20
22
  import { PickerGrid } from "../editor/picker-grid";
21
23
  import { Segmented } from "../segmented";
22
24
  import { ToggleBar } from "../toggle-bar";
@@ -351,24 +353,34 @@ function BlockSummary({ b, opens }: { b: EmailBlock; opens?: string }) {
351
353
  return <span>{blockLine(b, opens)}</span>;
352
354
  }
353
355
 
354
- // ── settings ────────────────────────────────────────────────────────────────────────────────────────────────────────────
356
+ // ── settings: the page editor's settings frame (editor plan D5, 10/11/2026) ─────────────────────────────────────────────────
357
+ // Chris 08/11/2026: one shell and one control set for every settings surface, "kể cả bên GemReach cũng thế, phần email edit các thứ".
358
+ // The email's settings and a block's were a column of hand-drawn boxes (an <input>, a <textarea>, the kit's Seg in a Field). Now they are
359
+ // what every other settings panel is: the kit's PartsFrame over InspectorFrame (its search, its Look · Layout index, its groups), each
360
+ // group a part, every control the kit's FieldControl by kind. GemReach's own email editor draws its settings the same way
361
+ // (admin/src/pages/email-editor-settings.tsx).
355
362
 
356
- function TextField({ label, value, onChange, hint, area = false, placeholder }: {
357
- label: string; value: string; onChange: (v: string) => void; hint?: React.ReactNode; area?: boolean; placeholder?: string;
358
- }) {
363
+ /** A word box (the kit's): each key on the mail at once, as the box it replaced did; the commit on leaving writes only what the keys
364
+ * did not. */
365
+ function Words({ spec, value, onWrite }: { spec: Extract<FieldSpec, { kind: "text" | "textarea" }>; value: string; onWrite: (v: string) => void }) {
359
366
  const id = useId();
360
- return (
361
- <Field label={label} htmlFor={id} hint={hint}>
362
- {area
363
- ? <textarea id={id} className="gemboss-field gemboss-ei-inp gb-emailed-area" rows={4} value={value} placeholder={placeholder} onChange={(e) => onChange(e.target.value)} />
364
- : <input id={id} className="gemboss-field gemboss-ei-inp" value={value} placeholder={placeholder} onChange={(e) => onChange(e.target.value)} />}
365
- </Field>
366
- );
367
+ const write = (v: unknown) => onWrite(String(v ?? ""));
368
+ return <FieldControl field={spec} inputId={id} value={value} onDraft={write} onChange={(v) => { if (String(v ?? "") !== value) write(v); }} />;
367
369
  }
368
370
 
371
+ /** A choice of a few (the kit's chips). */
372
+ function Choice({ id, label, value, options, onPick }: { id: string; label: string; value: string; options: readonly { value: string; label: string; name?: string }[]; onPick: (v: string) => void }) {
373
+ const inputId = useId();
374
+ return <FieldControl field={{ kind: "segmented", id, label, options: [...options] }} inputId={inputId} value={value} onChange={(v) => onPick(String(v ?? ""))} />;
375
+ }
376
+
377
+ /** One group of the frame: a part a search finds by `words` and by its fields' labels. */
378
+ const part = (key: string, title: string, words: string, body: React.ReactNode, hint?: React.ReactNode): FramePart =>
379
+ ({ key, words, node: <InspectorGroup collapsible={false} title={title} hint={hint}>{body}</InspectorGroup> });
380
+
369
381
  const ALIGN = [{ value: "left", label: "Left" }, { value: "center", label: "Center" }, { value: "right", label: "Right" }] as const;
370
382
 
371
- function BlockSettings({ b, opens, variables, onPatch }: { b: EmailBlock; opens?: string; variables: readonly string[]; onPatch: (p: Partial<EmailBlock>) => void }) {
383
+ export function BlockSettings({ b, opens, variables, onPatch }: { b: EmailBlock; opens?: string; variables: readonly string[]; onPatch: (p: Partial<EmailBlock>) => void }) {
372
384
  const p = onPatch as (patch: Record<string, unknown>) => void;
373
385
  const insert = (key: "text" | "title", now: string) => variables.length ? (
374
386
  <div className="gb-emailed-vars" role="group" aria-label="Insert a variable">
@@ -377,86 +389,101 @@ function BlockSettings({ b, opens, variables, onPatch }: { b: EmailBlock; opens?
377
389
  ))}
378
390
  </div>
379
391
  ) : null;
392
+ // Where the block stands in the mail: the frame's Layout.
393
+ const align = (fallback: "left" | "center") => part("align", "Alignment", "Align left center right",
394
+ <Choice id="align" label="Align" value={(b as { align?: string }).align ?? fallback} options={ALIGN} onPick={(v) => p({ align: v })} />);
395
+ const own: FramePart[] = [];
396
+ const place: FramePart[] = [];
380
397
  switch (b.type) {
381
398
  case "header":
382
- return <div className="gb-emailed-form">
383
- <Field label="Align" row><Seg label="Align" value={b.align ?? "center"} onChange={(v) => p({ align: v })} options={ALIGN} /></Field>
384
- <TextField label="Link" value={b.href ?? ""} onChange={(v) => p({ href: v || undefined })} placeholder="The store's home page" />
385
- <p className="gb-emailed-muted">The logo comes from the brand kit.</p>
386
- </div>;
399
+ own.push(part("header", "Header", "Header logo link",
400
+ <Words spec={{ kind: "text", id: "href", label: "Link", placeholder: "The store's home page", inputType: "url" }} value={b.href ?? ""} onWrite={(v) => p({ href: v || undefined })} />,
401
+ "The logo comes from the brand kit."));
402
+ place.push(align("center"));
403
+ break;
387
404
  case "image":
388
- return <div className="gb-emailed-form">
389
- <TextField label="Image address" value={b.src} onChange={(v) => p({ src: v })} placeholder="https://…" />
390
- <TextField label="What it shows" value={b.alt ?? ""} onChange={(v) => p({ alt: v })} hint="Read aloud, and shown when an inbox hides pictures." />
391
- <TextField label="Link" value={b.href ?? ""} onChange={(v) => p({ href: v || undefined })} placeholder="None" />
392
- </div>;
405
+ own.push(part("image", "Image", "Image picture address alt link", <>
406
+ <Words spec={{ kind: "text", id: "src", label: "Image address", placeholder: "https://…", inputType: "url" }} value={b.src} onWrite={(v) => p({ src: v })} />
407
+ <Words spec={{ kind: "text", id: "alt", label: "What it shows", hint: "Read aloud, and shown when an inbox hides pictures." }} value={b.alt ?? ""} onWrite={(v) => p({ alt: v })} />
408
+ <Words spec={{ kind: "text", id: "href", label: "Link", placeholder: "None", inputType: "url" }} value={b.href ?? ""} onWrite={(v) => p({ href: v || undefined })} />
409
+ </>));
410
+ break;
393
411
  case "hero":
394
- return <div className="gb-emailed-form">
395
- <TextField label="Heading" value={b.title} onChange={(v) => p({ title: v })} />
396
- <TextField label="Text" value={b.text ?? ""} onChange={(v) => p({ text: v })} area hint="Variables like {{first_name}} are filled for each person." />
412
+ own.push(part("words", "Words", "Hero heading text variables", <>
413
+ <Words spec={{ kind: "text", id: "title", label: "Heading" }} value={b.title} onWrite={(v) => p({ title: v })} />
414
+ <Words spec={{ kind: "textarea", id: "text", label: "Text", rows: 4, hint: "Variables like {{first_name}} are filled for each person." }} value={b.text ?? ""} onWrite={(v) => p({ text: v })} />
397
415
  {insert("text", b.text ?? "")}
398
- <Field label="Align" row><Seg label="Align" value={b.align ?? "left"} onChange={(v) => p({ align: v })} options={ALIGN} /></Field>
399
- </div>;
416
+ </>));
417
+ place.push(align("left"));
418
+ break;
400
419
  case "heading": case "paragraph":
401
- return <div className="gb-emailed-form">
402
- <TextField label={b.type === "heading" ? "Heading" : "Text"} value={b.text} onChange={(v) => p({ text: v })} area={b.type === "paragraph"} />
420
+ own.push(part("words", "Words", `${b.type === "heading" ? "Heading" : "Paragraph text"} variables`, <>
421
+ {b.type === "heading"
422
+ ? <Words spec={{ kind: "text", id: "text", label: "Heading" }} value={b.text} onWrite={(v) => p({ text: v })} />
423
+ : <Words spec={{ kind: "textarea", id: "text", label: "Text", rows: 4 }} value={b.text} onWrite={(v) => p({ text: v })} />}
403
424
  {insert("text", b.text)}
404
- </div>;
425
+ </>));
426
+ break;
405
427
  case "products":
406
- return <div className="gb-emailed-form">
407
- <Field label="Products from"><Seg<ProductsSource> label="Products from" value={b.source} onChange={(v) => p({ source: v })}
408
- options={(["order", "cart", "viewed"] as const).map((v) => ({ value: v, label: PRODUCTS_SOURCE_NAME[v] }))} /></Field>
409
- <Field label="How many" row><Seg label="How many" value={String(b.count ?? 2)} onChange={(v) => p({ count: Number(v) })}
410
- options={["1", "2", "3", "4"].map((v) => ({ value: v, label: v }))} /></Field>
411
- <TextField label="Title above them" value={b.title ?? ""} onChange={(v) => p({ title: v || undefined })} placeholder="None" />
412
- <p className="gb-emailed-muted">Filled for each person when the email is built: what they bought, what is in their cart, or what they looked at.</p>
413
- </div>;
428
+ own.push(part("products", "Products", "Products from order cart viewed how many title",
429
+ <>
430
+ <Choice id="source" label="Products from" value={b.source} onPick={(v) => p({ source: v as ProductsSource })}
431
+ options={(["order", "cart", "viewed"] as const).map((v) => ({ value: v, label: PRODUCTS_SOURCE_NAME[v] }))} />
432
+ <Choice id="count" label="How many" value={String(b.count ?? 2)} onPick={(v) => p({ count: Number(v) })}
433
+ options={["1", "2", "3", "4"].map((v) => ({ value: v, label: v }))} />
434
+ <Words spec={{ kind: "text", id: "title", label: "Title above them", placeholder: "None" }} value={b.title ?? ""} onWrite={(v) => p({ title: v || undefined })} />
435
+ </>,
436
+ "Filled for each person when the email is built: what they bought, what is in their cart, or what they looked at."));
437
+ break;
414
438
  case "button": {
415
439
  const personal = isPersonalLink(b.url);
416
- return <div className="gb-emailed-form">
417
- <TextField label="Text" value={b.text} onChange={(v) => p({ text: v })} hint="Short: phones fit about 25 characters on one line." />
418
- <Field label="Opens"><Seg<"personal" | "link"> label="Opens" value={personal ? "personal" : "link"}
419
- onChange={(v) => p({ url: v === "personal" ? PERSONAL_LINK : "" })}
420
- options={[{ value: "personal", label: "Personal link" }, { value: "link", label: "A link" }]} /></Field>
440
+ own.push(part("button", "Button", "Button text opens personal link", <>
441
+ <Words spec={{ kind: "text", id: "text", label: "Text", hint: "Short: phones fit about 25 characters on one line." }} value={b.text} onWrite={(v) => p({ text: v })} />
442
+ <Choice id="opens" label="Opens" value={personal ? "personal" : "link"} onPick={(v) => p({ url: v === "personal" ? PERSONAL_LINK : "" })}
443
+ options={[{ value: "personal", label: "Personal link" }, { value: "link", label: "A link" }]} />
421
444
  {personal ? (
422
445
  <div className="gb-emailed-personal">
423
446
  <span className="gb-emailed-tag">Personal link</span>
424
447
  <b>{opens ?? "A page built for each person"}</b>
425
448
  <span>Each person gets their own signed link. It expires in {PERSONAL_LINK_HOURS} hours and carries no email address.</span>
426
449
  </div>
427
- ) : <TextField label="Link" value={b.url} onChange={(v) => p({ url: v })} placeholder="https://…" />}
428
- <Field label="Align" row><Seg label="Align" value={b.align ?? "center"} onChange={(v) => p({ align: v })} options={ALIGN} /></Field>
429
- </div>;
450
+ ) : <Words spec={{ kind: "text", id: "url", label: "Link", placeholder: "https://…", inputType: "url" }} value={b.url} onWrite={(v) => p({ url: v })} />}
451
+ </>));
452
+ place.push(align("center"));
453
+ break;
430
454
  }
431
455
  case "review":
432
- return <div className="gb-emailed-form">
433
- <TextField label="Question" value={b.title} onChange={(v) => p({ title: v })} />
434
- <TextField label="Text" value={b.text ?? ""} onChange={(v) => p({ text: v })} area />
435
- <TextField label="Button" value={b.button} onChange={(v) => p({ button: v })} />
436
- <p className="gb-emailed-muted">GemReview opens a page signed for this buyer: stars, a few words, a photo if they like.</p>
437
- </div>;
456
+ own.push(part("review", "Review request", "Review question text button", <>
457
+ <Words spec={{ kind: "text", id: "title", label: "Question" }} value={b.title} onWrite={(v) => p({ title: v })} />
458
+ <Words spec={{ kind: "textarea", id: "text", label: "Text", rows: 4 }} value={b.text ?? ""} onWrite={(v) => p({ text: v })} />
459
+ <Words spec={{ kind: "text", id: "button", label: "Button" }} value={b.button} onWrite={(v) => p({ button: v })} />
460
+ </>, "GemReview opens a page signed for this buyer: stars, a few words, a photo if they like."));
461
+ break;
438
462
  case "footer":
439
- return <div className="gb-emailed-form">
440
- <TextField label="A line above the address" value={b.text ?? ""} onChange={(v) => p({ text: v || undefined })} placeholder="None" />
441
- <p className="gb-emailed-muted">The store's postal address, Unsubscribe and Email preferences are on every email. Unsubscribe works in one click.</p>
442
- </div>;
463
+ own.push(part("footer", "Footer", "Footer line address unsubscribe",
464
+ <Words spec={{ kind: "text", id: "text", label: "A line above the address", placeholder: "None" }} value={b.text ?? ""} onWrite={(v) => p({ text: v || undefined })} />,
465
+ "The store's postal address, Unsubscribe and Email preferences are on every email. Unsubscribe works in one click."));
466
+ break;
443
467
  default:
444
468
  return <p className="gb-emailed-muted">This block is edited in GemReach for now.</p>;
445
469
  }
470
+ return <PartsFrame own={own} place={place} />;
446
471
  }
447
472
 
448
- function EmailSettings({ draft, onChange, people, personId, onPerson }: {
473
+ export function EmailSettings({ draft, onChange, people, personId, onPerson }: {
449
474
  draft: EmailDraft; onChange: (d: EmailDraft) => void; people: readonly EmailPreviewPerson[]; personId: string; onPerson: (id: string) => void;
450
475
  }) {
451
- return (
452
- <div className="gb-emailed-form">
453
- <TextField label="Name" value={draft.name} onChange={(v) => onChange({ ...draft, name: v })} hint="Only you see it: on the funnel and in lists." />
454
- <TextField label="Subject" value={draft.subject} onChange={(v) => onChange({ ...draft, subject: v })} hint="Phones cut it at about 60 characters." />
455
- <TextField label="Preview line" value={draft.preheader} onChange={(v) => onChange({ ...draft, preheader: v })} hint="The grey line after the subject in the inbox." />
476
+ const inputId = useId();
477
+ const own: FramePart[] = [
478
+ part("email", "Email", "Email name", <Words spec={{ kind: "text", id: "name", label: "Name", hint: "Only you see it: on the funnel and in lists." }} value={draft.name} onWrite={(v) => onChange({ ...draft, name: v })} />),
479
+ part("inbox", "Inbox", "Inbox subject preview line preheader sender from", <>
480
+ <Words spec={{ kind: "text", id: "subject", label: "Subject", hint: "Phones cut it at about 60 characters." }} value={draft.subject} onWrite={(v) => onChange({ ...draft, subject: v })} />
481
+ <Words spec={{ kind: "text", id: "preheader", label: "Preview line", hint: "The grey line after the subject in the inbox." }} value={draft.preheader} onWrite={(v) => onChange({ ...draft, preheader: v })} />
456
482
  <Field label="From"><span className="gb-emailed-from">{draft.from.name} &lt;{draft.from.email}&gt;</span></Field>
457
- {people.length > 1 ? (
458
- <Field label="Preview as"><Seg label="Preview as" value={personId} onChange={onPerson} options={people.map((x) => ({ value: x.id, label: x.label.split(" · ")[0]!, name: x.label }))} /></Field>
459
- ) : null}
460
- </div>
461
- );
483
+ </>),
484
+ ...(people.length > 1 ? [part("preview", "Preview", "Preview as person",
485
+ <FieldControl field={{ kind: "select", id: "person", label: "Preview as", options: people.map((x) => ({ value: x.id, label: x.label })) }}
486
+ inputId={inputId} value={personId} onChange={(v) => onPerson(String(v ?? ""))} />)] : []),
487
+ ];
488
+ return <PartsFrame own={own} />;
462
489
  }