@gemboss/ui 0.64.0 → 0.66.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.
- package/CHANGELOG.md +213 -1
- package/README.md +67 -5
- package/catalog/editor.html +21 -13
- package/catalog/index.html +4 -4
- package/gemboss-ui.css +3 -3
- package/package.json +8 -1
- package/parts/components.css +2 -2
- package/parts/core.css +1 -1
- package/parts/shell.css +1 -1
- package/src/auth.tsx +1 -15
- package/src/confirm-buttons.ts +35 -0
- package/src/confirm-dialog.css +1 -0
- package/src/confirm-dialog.tsx +124 -0
- package/src/create-shell.css +1 -1
- package/src/create-shell.tsx +7 -4
- package/src/dialog.css +1 -0
- package/src/dialog.tsx +46 -7
- package/src/editor/color-choices.ts +9 -0
- package/src/editor/controls.tsx +59 -19
- package/src/editor/field-control.tsx +456 -0
- package/src/editor/field-frame.tsx +192 -0
- package/src/editor/field-spec.ts +346 -0
- package/src/editor/index.ts +20 -2
- package/src/editor/label-side.ts +9 -3
- package/src/editor/panel.tsx +39 -12
- package/src/editor/secret-field.tsx +116 -0
- package/src/editor-color.css +1 -1
- package/src/editor-plain.js +1 -1
- package/src/editor.css +1 -1
- package/src/email-editor/editor.tsx +37 -9
- package/src/email-editor/model.ts +5 -1
- package/src/email-editor.css +1 -1
- package/src/eye-icon.tsx +14 -0
- package/src/gem-at-work.css +1 -1
- package/src/gem-at-work.ts +223 -11
- package/src/gemboss-field.css +1 -1
- package/src/icons-plain.js +1 -0
- package/src/icons.tsx +9 -0
- package/src/index.ts +4 -1
- package/src/kit-plain.css +1 -1
- package/src/list-page.css +1 -1
- package/src/list-page.tsx +181 -55
- package/src/list-toolbar.css +1 -0
- package/src/list-toolbar.tsx +85 -0
- package/src/menu-keys.ts +3 -1
- package/src/search-dialog.tsx +4 -1
- package/src/segmented.tsx +21 -5
- package/src/service-switcher.tsx +2 -2
- package/src/settings-dialog.tsx +2 -2
- package/src/ui.css +1 -1
package/src/editor/panel.tsx
CHANGED
|
@@ -19,6 +19,14 @@ export interface PanelTab<T extends string = string> {
|
|
|
19
19
|
icon?: React.ReactNode;
|
|
20
20
|
/** The id of the panel this tab shows: `aria-controls` (and editor-plain.js shows it, hiding its siblings'). */
|
|
21
21
|
controls?: string;
|
|
22
|
+
/** A second line under the label, muted: what the part holds (09/11/2026, the offer editor's Offer · Who & when · Design, UI book
|
|
23
|
+
* OF-1). For the inspector row. It is the tab's description (`aria-describedby`), not part of its name. Under 300px of row only the
|
|
24
|
+
* labels stay. */
|
|
25
|
+
hint?: React.ReactNode;
|
|
26
|
+
/** The tab's own id, for the panel that names itself by it (`aria-labelledby`). */
|
|
27
|
+
tabId?: string;
|
|
28
|
+
/** Its tooltip (the offer editor's: what in that part needs a look). */
|
|
29
|
+
title?: string;
|
|
22
30
|
}
|
|
23
31
|
|
|
24
32
|
export interface PanelTabsProps<T extends string = string> {
|
|
@@ -35,34 +43,47 @@ export interface PanelTabsProps<T extends string = string> {
|
|
|
35
43
|
label?: string;
|
|
36
44
|
/**
|
|
37
45
|
* Roving focus (default on): only the selected tab is in the Tab order, ←/→ move the selection and the focus with
|
|
38
|
-
* it, wrapping at the ends
|
|
39
|
-
* kept exactly as it was in step 3).
|
|
46
|
+
* it, wrapping at the ends, and Home / End go to the first and the last (09/11/2026, as the offer editor's row did). Off,
|
|
47
|
+
* every tab is a plain stop and keys do nothing (the admin's Configure · Chat row, kept exactly as it was in step 3).
|
|
40
48
|
*/
|
|
41
49
|
roving?: boolean;
|
|
50
|
+
/** No margin of its own: the row sits flush in a box that has its own padding (the offer editor's card), outside the editor's
|
|
51
|
+
* column. The inspector's row otherwise keeps 8px over it and 12px at its sides there. */
|
|
52
|
+
flush?: boolean;
|
|
42
53
|
}
|
|
43
54
|
|
|
44
55
|
/** A row of `role="tab"` buttons. The caller owns the selection and draws the panel under it. */
|
|
45
|
-
export function PanelTabs<T extends string = string>({ tabs, value, onChange, variant = "column", label, roving = true }: PanelTabsProps<T>) {
|
|
56
|
+
export function PanelTabs<T extends string = string>({ tabs, value, onChange, variant = "column", label, roving = true, flush = false }: PanelTabsProps<T>) {
|
|
46
57
|
const inspector = variant === "inspector";
|
|
58
|
+
const hints = tabs.some((t) => t.hint != null);
|
|
59
|
+
const uid = useId();
|
|
47
60
|
const onKeyDown = roving ? (e: React.KeyboardEvent<HTMLDivElement>) => {
|
|
48
|
-
if (e.key !== "ArrowRight" && e.key !== "ArrowLeft") return;
|
|
61
|
+
if (e.key !== "ArrowRight" && e.key !== "ArrowLeft" && e.key !== "Home" && e.key !== "End") return;
|
|
49
62
|
e.preventDefault();
|
|
50
63
|
const i = tabs.findIndex((t) => t.id === value);
|
|
51
|
-
const ni = e.key === "
|
|
64
|
+
const ni = e.key === "Home" ? 0 : e.key === "End" ? tabs.length - 1
|
|
65
|
+
: e.key === "ArrowRight" ? (i + 1) % tabs.length : (i - 1 + tabs.length) % tabs.length;
|
|
52
66
|
onChange(tabs[ni].id);
|
|
53
67
|
// Focus follows the selection (roving tabindex).
|
|
54
68
|
(e.currentTarget.children[ni] as HTMLButtonElement | undefined)?.focus();
|
|
55
69
|
} : undefined;
|
|
56
70
|
return (
|
|
57
|
-
<div className={inspector ? "gemboss-ei-tabs" : "gemboss-ec-tabs"
|
|
71
|
+
<div className={[inspector ? "gemboss-ei-tabs" : "gemboss-ec-tabs", hints ? "has-hints" : "", flush ? "is-flush" : ""].filter(Boolean).join(" ")}
|
|
72
|
+
role="tablist" aria-label={label} onKeyDown={onKeyDown}>
|
|
58
73
|
{tabs.map((t) => {
|
|
59
74
|
const on = t.id === value;
|
|
60
75
|
return (
|
|
61
76
|
// data-value: what a page without React reads back (editor-plain.js), since the label can be anything.
|
|
62
|
-
<button key={t.id} type="button" role="tab" data-value={t.id}
|
|
77
|
+
<button key={t.id} type="button" role="tab" data-value={t.id} id={t.tabId} title={t.title}
|
|
63
78
|
className={inspector ? `gemboss-ei-tab${on ? " on" : ""}` : "gemboss-ec-tab"}
|
|
64
|
-
aria-selected={on} aria-controls={t.controls}
|
|
65
|
-
{
|
|
79
|
+
aria-selected={on} aria-controls={t.controls} aria-describedby={t.hint != null ? `${uid}-${t.id}-hint` : undefined}
|
|
80
|
+
tabIndex={roving ? (on ? 0 : -1) : undefined} onClick={() => onChange(t.id)}>
|
|
81
|
+
{t.icon}{hints ? (
|
|
82
|
+
// Every tab of a row with hints is drawn the same way (one without a hint keeps the column, so the labels line up). The
|
|
83
|
+
// hint describes the tab: hidden from its name, read as its description.
|
|
84
|
+
<span className="gemboss-ei-tab-text"><span>{t.label}</span>
|
|
85
|
+
{t.hint != null ? <span className="gemboss-ei-tab-hint" id={`${uid}-${t.id}-hint`} aria-hidden="true">{t.hint}</span> : null}</span>
|
|
86
|
+
) : t.label}
|
|
66
87
|
</button>
|
|
67
88
|
);
|
|
68
89
|
})}
|
|
@@ -179,6 +200,9 @@ export interface FieldProps {
|
|
|
179
200
|
label?: React.ReactNode;
|
|
180
201
|
/** The control's id, so a click on the label focuses it. */
|
|
181
202
|
htmlFor?: string;
|
|
203
|
+
/** The label's own id, for a control that is a group of boxes it names (`aria-labelledby`): several checkboxes have no one control a
|
|
204
|
+
* `for` can point at (Screens). */
|
|
205
|
+
labelId?: string;
|
|
182
206
|
/** A value shown at the label's right edge, bold and tabular (a range's current value: `.gemboss-ei-rangeval`). */
|
|
183
207
|
labelValue?: React.ReactNode;
|
|
184
208
|
/** The setting's help (`p.gemboss-ei-hint.gemboss-ei-help-text`). In a plugin's form a line under the control; inside an
|
|
@@ -203,6 +227,9 @@ export interface FieldProps {
|
|
|
203
227
|
style?: React.CSSProperties;
|
|
204
228
|
/** Refuse a descendant's pending blur commit on this existing field root, without inserting a DOM wrapper. */
|
|
205
229
|
onBlurCapture?: React.FocusEventHandler<HTMLDivElement>;
|
|
230
|
+
/** The focus leaving a part of the field, after the part's own blur (a text box whose toolbar, chips and link box are in the field too
|
|
231
|
+
* saves its words when the focus leaves all of them: the admin's TextMarksField). */
|
|
232
|
+
onBlur?: React.FocusEventHandler<HTMLDivElement>;
|
|
206
233
|
children?: React.ReactNode;
|
|
207
234
|
}
|
|
208
235
|
|
|
@@ -220,16 +247,16 @@ export interface FieldProps {
|
|
|
220
247
|
* beside it in a group, a drawer or a card alike (05/11/2026, unreleased: the row was laid out only inside a group, so the page settings drawer's
|
|
221
248
|
* three lists stacked under labels that asked to sit beside them).
|
|
222
249
|
*/
|
|
223
|
-
export function Field({ label, htmlFor, labelValue, hint, control, row = false, aside, mark, className, style, onBlurCapture, children }: FieldProps) {
|
|
250
|
+
export function Field({ label, htmlFor, labelId, labelValue, hint, control, row = false, aside, mark, className, style, onBlurCapture, onBlur, children }: FieldProps) {
|
|
224
251
|
const helpId = useId();
|
|
225
252
|
const [helpOpen, setHelpOpen] = useState(false);
|
|
226
253
|
const beside = control ? labelSide(control) === "beside" : row;
|
|
227
254
|
const cls = ["gemboss-ei-fld", beside && label != null ? "gemboss-ei-fld--row" : "", className].filter(Boolean).join(" ");
|
|
228
255
|
const labelNode = label != null ? (
|
|
229
|
-
<label htmlFor={htmlFor}>{label}{labelValue != null ? <span className="gemboss-ei-rangeval">{labelValue}</span> : null}</label>
|
|
256
|
+
<label htmlFor={htmlFor} id={labelId}>{label}{labelValue != null ? <span className="gemboss-ei-rangeval">{labelValue}</span> : null}</label>
|
|
230
257
|
) : null;
|
|
231
258
|
return (
|
|
232
|
-
<div className={cls} style={style} onBlurCapture={onBlurCapture}>
|
|
259
|
+
<div className={cls} style={style} onBlurCapture={onBlurCapture} onBlur={onBlur}>
|
|
233
260
|
{/* A ? is a button, so it sits BESIDE the label, not in it (a label may hold no other labelable element); so does an aside. */}
|
|
234
261
|
{(hint || aside || mark) && labelNode ? (
|
|
235
262
|
<div className="gemboss-ei-lbl">
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
// A SECRET THE SELLER GIVES (09/11/2026, one control set: every admin surface that takes a token or a key drew its own password box, Polaris'
|
|
3
|
+
// or a raw input, each with its own words for "it is stored"). One box for an API token, a private key, an access token:
|
|
4
|
+
// · typed or pasted (Paste reads the clipboard), masked, with Show / Hide for checking what was pasted;
|
|
5
|
+
// · never copied or dragged out of the box (copy, cut and a drag do nothing): a secret goes in, it does not come back out;
|
|
6
|
+
// · autocomplete off and 1Password / LastPass told to stay out; a browser's own password manager may still offer to save it (a masked
|
|
7
|
+
// box is a password box to it), which no attribute reliably stops;
|
|
8
|
+
// · once stored, the box is gone and the field says "Saved", with the last characters when the host knows them, never the secret itself
|
|
9
|
+
// (the host hands only its tail; the kit keeps four characters of it at most). Replace opens an empty box; Cancel closes it.
|
|
10
|
+
// Its label is beside the box (the label-side table: `secret`), the box and its two buttons in the control column, the buttons under the box
|
|
11
|
+
// where the column is too narrow for both (as a link's box and its Choose).
|
|
12
|
+
import "../editor.css"; // its own stylesheet travels with it
|
|
13
|
+
import { useRef, useState, type ClipboardEvent, type DragEvent, type KeyboardEvent, type ReactNode } from "react";
|
|
14
|
+
import { EyeIcon } from "../eye-icon";
|
|
15
|
+
import { Field } from "./panel";
|
|
16
|
+
import { useOnNewValue } from "./new-value";
|
|
17
|
+
|
|
18
|
+
export interface SecretFieldProps {
|
|
19
|
+
/** The box's id (the label points at it). */
|
|
20
|
+
id: string;
|
|
21
|
+
/** What the secret is ("Judge.me private API token"). */
|
|
22
|
+
label: string;
|
|
23
|
+
/** No label drawn: the box is named by it for a screen reader, where its row already says what it is. */
|
|
24
|
+
labelHidden?: boolean;
|
|
25
|
+
/** What is being typed now. Never the stored secret: a host never hands it back. */
|
|
26
|
+
value: string;
|
|
27
|
+
onChange: (value: string) => void;
|
|
28
|
+
/** Enter in the box (the host's Connect or Save). */
|
|
29
|
+
onSubmit?: () => void;
|
|
30
|
+
placeholder?: string;
|
|
31
|
+
/** Where to find it, what happens to it. Drawn as the field's help. */
|
|
32
|
+
hint?: ReactNode;
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
/** A secret is stored: the field says so instead of a box, with its last characters if the host knows them (`tail`). Replace opens an
|
|
35
|
+
* empty box. `at`: when it was stored, so a new one with the same tail (or none) is a new one too. null / absent: nothing stored. */
|
|
36
|
+
saved?: { tail?: string | null; at?: string | null } | null;
|
|
37
|
+
/** Replace pressed (true) or its Cancel (false), for a host that shows its own Save only while a new secret is typed. */
|
|
38
|
+
onReplacing?: (replacing: boolean) => void;
|
|
39
|
+
/** Controlled: the host holds whether a new secret is being typed over the stored one (it closes the box when its save lands). Absent,
|
|
40
|
+
* the field holds it, and closes it when the stored secret's tail or `at` changes: a host whose secret has neither controls it. */
|
|
41
|
+
replacing?: boolean;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** The last characters a host may show of a stored secret: four at most, whatever it hands. */
|
|
45
|
+
export function secretTail(tail: string | null | undefined): string {
|
|
46
|
+
return (tail ?? "").replace(/\s+/g, "").slice(-4);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function SecretField({ id, label, labelHidden = false, value, onChange, onSubmit, placeholder, hint, disabled, saved, onReplacing, replacing: held }: SecretFieldProps) {
|
|
50
|
+
const [shown, setShown] = useState(false);
|
|
51
|
+
const [own, setReplacing] = useState(false);
|
|
52
|
+
const replacing = held ?? own;
|
|
53
|
+
const [pasteRefused, setPasteRefused] = useState(false);
|
|
54
|
+
// A new secret stored (the host's answer): back to "Saved", masked again.
|
|
55
|
+
const savedKey = saved ? `saved:${secretTail(saved.tail)}:${saved.at ?? ""}` : "none";
|
|
56
|
+
useOnNewValue(() => { setReplacing(false); setShown(false); }, [savedKey, held]);
|
|
57
|
+
// Emptied (a failed connect clears it): masked again, so the next secret never goes in in plain sight.
|
|
58
|
+
useOnNewValue(() => { if (!value) setShown(false); }, [value === ""]);
|
|
59
|
+
// What the box holds now, for a paste the browser answers late: it lands only on the box as it was when Paste was pressed.
|
|
60
|
+
const current = useRef(value);
|
|
61
|
+
current.current = value;
|
|
62
|
+
const replace = (on: boolean) => { setReplacing(on); setShown(false); setPasteRefused(false); if (!on) onChange(""); onReplacing?.(on); };
|
|
63
|
+
const noCopy = (e: ClipboardEvent<HTMLInputElement>) => e.preventDefault();
|
|
64
|
+
const noDrag = (e: DragEvent<HTMLInputElement>) => e.preventDefault();
|
|
65
|
+
const paste = async () => {
|
|
66
|
+
setPasteRefused(false);
|
|
67
|
+
const before = current.current;
|
|
68
|
+
try {
|
|
69
|
+
const text = await navigator.clipboard.readText();
|
|
70
|
+
// Typed or pasted with ⌘V meanwhile (a permission prompt was open): that stays.
|
|
71
|
+
if (text.trim() && current.current === before) onChange(text.trim());
|
|
72
|
+
} catch {
|
|
73
|
+
// The browser would not hand the clipboard over (no permission, not a secure page): ⌘V / Ctrl+V in the box still pastes.
|
|
74
|
+
setPasteRefused(true);
|
|
75
|
+
document.getElementById(id)?.focus();
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
const named = labelHidden ? undefined : label;
|
|
79
|
+
const tail = saved ? secretTail(saved.tail) : "";
|
|
80
|
+
|
|
81
|
+
if (saved && !replacing) {
|
|
82
|
+
return (
|
|
83
|
+
<Field label={named} control="secret" hint={hint}>
|
|
84
|
+
<div className="gemboss-ei-secret gemboss-ei-secret--saved" data-secret-saved="">
|
|
85
|
+
<span className="gemboss-ei-secret-said">
|
|
86
|
+
{labelHidden ? <span className="ui-sr-only">{`${label}: `}</span> : null}
|
|
87
|
+
{tail ? <>Saved, ends in <span className="gemboss-ei-secret-tail">{tail}</span></> : "Saved"}
|
|
88
|
+
</span>
|
|
89
|
+
<button type="button" className="ui-btn gemboss-ei-secret-btn" disabled={disabled} aria-label={`Replace ${label}`} onClick={() => replace(true)}>Replace</button>
|
|
90
|
+
</div>
|
|
91
|
+
</Field>
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return (
|
|
96
|
+
<Field label={named} htmlFor={id} control="secret" hint={hint}>
|
|
97
|
+
<div className="gemboss-ei-secret">
|
|
98
|
+
<input id={id} className="gemboss-field gemboss-ei-inp gemboss-ei-secret-box" type={shown ? "text" : "password"} value={value} disabled={disabled}
|
|
99
|
+
placeholder={placeholder} aria-label={labelHidden ? label : undefined} autoComplete="off" autoCapitalize="off" autoCorrect="off" spellCheck={false}
|
|
100
|
+
data-1p-ignore="" data-lpignore="true" onCopy={noCopy} onCut={noCopy} onDragStart={noDrag}
|
|
101
|
+
onChange={(e) => { setPasteRefused(false); onChange(e.target.value); }}
|
|
102
|
+
onKeyDown={(e: KeyboardEvent<HTMLInputElement>) => { if (e.key === "Enter" && onSubmit) { e.preventDefault(); onSubmit(); } }} />
|
|
103
|
+
<span className="gemboss-ei-secret-acts">
|
|
104
|
+
{/* NAME ONLY, no aria-pressed (the kit's PasswordField): once the name flips, a pressed state says the opposite thing. */}
|
|
105
|
+
<button type="button" className="ui-btn ui-btn--icon gemboss-ei-secret-btn" aria-controls={id} disabled={disabled || !value}
|
|
106
|
+
aria-label={shown ? `Hide ${label}` : `Show ${label}`} title={shown ? "Hide" : "Show"} onClick={() => setShown((s) => !s)}>
|
|
107
|
+
<EyeIcon off={shown} />
|
|
108
|
+
</button>
|
|
109
|
+
<button type="button" className="ui-btn gemboss-ei-secret-btn" disabled={disabled} onClick={() => void paste()}>Paste</button>
|
|
110
|
+
{saved ? <button type="button" className="ui-btn gemboss-ei-secret-btn" disabled={disabled} onClick={() => replace(false)}>Cancel</button> : null}
|
|
111
|
+
</span>
|
|
112
|
+
</div>
|
|
113
|
+
{pasteRefused ? <p className="gemboss-ei-hint" role="status">The browser did not hand over the clipboard: paste in the box with ⌘V or Ctrl+V.</p> : null}
|
|
114
|
+
</Field>
|
|
115
|
+
);
|
|
116
|
+
}
|
package/src/editor-color.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.gemboss-ei-swatch{display:grid;padding:2px}.gemboss-ei-swatch-fill{display:block;border-radius:6px;background:linear-gradient(var(--sw,#fff),var(--sw,#fff)),conic-gradient(#d8dbe0 25%,#fff 0 50%,#d8dbe0 0 75%,#fff 0) 0 0/8px 8px}.gemboss-ei-swatch[data-empty] .gemboss-ei-swatch-fill{background:linear-gradient(to top right,#0000 46%,var(--ui-text-muted,#686b71) 46% 54%,#0000 54%),#fff}.gemboss-ei-swatch[aria-expanded=true]{border-color:var(--ui-focus,#5661f5);box-shadow:0 0 0 1px var(--ui-focus,#5661f5)}.gemboss-ei-swatch:focus-visible{outline:2px solid var(--ui-focus,#5661f5);outline-offset:2px}.gemboss-ei-cp{display:flex;flex-direction:column;gap:var(--ui-space-3,12px);min-width:0}.gemboss-ei-cp-area{position:relative;height:160px;border-radius:var(--ui-radius-md,8px);background:linear-gradient(to top,#000,#0000),linear-gradient(to right,#fff,var(--cp-hue,red));cursor:crosshair;touch-action:none;outline:none}.gemboss-ei-cp-area:focus-visible{box-shadow:0 0 0 2px var(--ui-surface,#fff),0 0 0 4px var(--ui-focus,#5661f5)}.gemboss-ei-cp-thumb{position:absolute;width:14px;height:14px;box-sizing:border-box;border:2px solid #fff;border-radius:50%;background:var(--cp-now,#fff);box-shadow:0 0 0 1px #0000004d,inset 0 0 0 1px #0000004d;transform:translate(-50%,-50%);pointer-events:none}.gemboss-ei-cp :is(.gemboss-ei-cp-hue,.gemboss-ei-cp-alpha){-webkit-appearance:none;appearance:none;display:block;width:100%;height:12px;margin:0;border-radius:6px;cursor:pointer;outline:none}.gemboss-ei-cp-hue{background:linear-gradient(to right,red,#ff0 17%,#0f0 33%,#0ff,#00f 67%,#f0f 83%,red)}.gemboss-ei-cp-alpha{background:linear-gradient(to right,#0000,var(--cp-now,#000)),conic-gradient(#d8dbe0 25%,#fff 0 50%,#d8dbe0 0 75%,#fff 0) 0 0/8px 8px}.gemboss-ei-cp-alpha:disabled{opacity:.4;cursor:default}.gemboss-ei-cp :is(.gemboss-ei-cp-hue,.gemboss-ei-cp-alpha)::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;border:2px solid #fff;border-radius:50%;background:transparent;box-shadow:0 0 0 1px #00000059,inset 0 0 0 1px #00000059}.gemboss-ei-cp :is(.gemboss-ei-cp-hue,.gemboss-ei-cp-alpha)::-moz-range-thumb{width:12px;height:12px;border:2px solid #fff;border-radius:50%;background:transparent;box-shadow:0 0 0 1px #00000059}.gemboss-ei-cp :is(.gemboss-ei-cp-hue,.gemboss-ei-cp-alpha):focus-visible{box-shadow:0 0 0 2px var(--ui-surface,#fff),0 0 0 4px var(--ui-focus,#5661f5)}.gemboss-ei-cp-row{display:flex;align-items:center;gap:var(--ui-space-2,8px)}.gemboss-ei-cp-now{flex:none;width:32px;height:32px;box-sizing:border-box;border:1px solid var(--ui-border,#e5e7ea);border-radius:var(--ui-radius-md,8px);background:linear-gradient(var(--cp-now,#fff),var(--cp-now,#fff)),conic-gradient(#d8dbe0 25%,#fff 0 50%,#d8dbe0 0 75%,#fff 0) 0 0/8px 8px}.gemboss-ei-cp-hex{flex:1;min-width:0;font-variant-numeric:tabular-nums;text-transform:uppercase}.gemboss-ei-cp-pct{flex:none;min-width:36px;text-align:right;font-size:var(--ui-fs-caption,12px);color:var(--ui-text-muted,#686b71);font-variant-numeric:tabular-nums}.gemboss-ei-cp-drop{flex:none;display:grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid var(--ui-border,#e5e7ea);border-radius:var(--ui-radius-md,8px);background:var(--ui-surface,#fff);color:var(--ui-text-strong,#1b1c1e);cursor:pointer}.gemboss-ei-cp-drop:hover{background:var(--ui-surface-2,#eceef2)}.gemboss-ei-cp-drop:focus-visible{outline:2px solid var(--ui-focus,#5661f5);outline-offset:1px}.gemboss-ei-cp-group{display:flex;flex-direction:column;gap:6px}.gemboss-ei-cp-label{font-size:var(--ui-fs-caption,12px);line-height:16px;font-weight:550;color:var(--ui-text-muted,#686b71)}.gemboss-ei-cp-chips{display:flex;flex-wrap:wrap;gap:var(--ui-space-2,8px)}.gemboss-ei-cp-none{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:0 10px 0 6px;border:1px solid var(--ui-border,#e5e7ea);border-radius:var(--ui-radius-md,8px);background:var(--ui-surface,#fff);font:inherit;font-size:var(--ui-fs-caption,12px);font-weight:550;color:var(--ui-text-strong,#1b1c1e);cursor:pointer}.gemboss-ei-cp-none[aria-pressed=true]{border-color:var(--ui-focus,#5661f5);box-shadow:inset 0 0 0 1px var(--ui-focus,#5661f5)}.gemboss-ei-cp-none:focus-visible{outline:2px solid var(--ui-focus,#5661f5);outline-offset:1px}.gemboss-ei-cp-none-sw{width:16px;height:16px;box-sizing:border-box;border:1px solid var(--ui-border,#e5e7ea);border-radius:4px;background:linear-gradient(to top right,#0000 44%,var(--gemboss-danger,#d72c0d) 44% 56%,#0000 56%),#fff}.gemboss-ei-color-box{position:relative;display:flex;flex:1;min-width:0;container-type:inline-size}.gemboss-ei-color-name{position:absolute;inset:
|
|
1
|
+
.gemboss-ei-swatch{display:grid;padding:2px}.gemboss-ei-swatch-fill{display:block;border-radius:6px;background:linear-gradient(var(--sw,#fff),var(--sw,#fff)),conic-gradient(#d8dbe0 25%,#fff 0 50%,#d8dbe0 0 75%,#fff 0) 0 0/8px 8px}.gemboss-ei-swatch[data-empty] .gemboss-ei-swatch-fill{background:linear-gradient(to top right,#0000 46%,var(--ui-text-muted,#686b71) 46% 54%,#0000 54%),#fff}.gemboss-ei-swatch[aria-expanded=true]{border-color:var(--ui-focus,#5661f5);box-shadow:0 0 0 1px var(--ui-focus,#5661f5)}.gemboss-ei-swatch:focus-visible{outline:2px solid var(--ui-focus,#5661f5);outline-offset:2px}.gemboss-ei-cp{display:flex;flex-direction:column;gap:var(--ui-space-3,12px);min-width:0}.gemboss-ei-cp-area{position:relative;height:160px;border-radius:var(--ui-radius-md,8px);background:linear-gradient(to top,#000,#0000),linear-gradient(to right,#fff,var(--cp-hue,red));cursor:crosshair;touch-action:none;outline:none}.gemboss-ei-cp-area:focus-visible{box-shadow:0 0 0 2px var(--ui-surface,#fff),0 0 0 4px var(--ui-focus,#5661f5)}.gemboss-ei-cp-thumb{position:absolute;width:14px;height:14px;box-sizing:border-box;border:2px solid #fff;border-radius:50%;background:var(--cp-now,#fff);box-shadow:0 0 0 1px #0000004d,inset 0 0 0 1px #0000004d;transform:translate(-50%,-50%);pointer-events:none}.gemboss-ei-cp :is(.gemboss-ei-cp-hue,.gemboss-ei-cp-alpha){-webkit-appearance:none;appearance:none;display:block;width:100%;height:12px;margin:0;border-radius:6px;cursor:pointer;outline:none}.gemboss-ei-cp-hue{background:linear-gradient(to right,red,#ff0 17%,#0f0 33%,#0ff,#00f 67%,#f0f 83%,red)}.gemboss-ei-cp-alpha{background:linear-gradient(to right,#0000,var(--cp-now,#000)),conic-gradient(#d8dbe0 25%,#fff 0 50%,#d8dbe0 0 75%,#fff 0) 0 0/8px 8px}.gemboss-ei-cp-alpha:disabled{opacity:.4;cursor:default}.gemboss-ei-cp :is(.gemboss-ei-cp-hue,.gemboss-ei-cp-alpha)::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;border:2px solid #fff;border-radius:50%;background:transparent;box-shadow:0 0 0 1px #00000059,inset 0 0 0 1px #00000059}.gemboss-ei-cp :is(.gemboss-ei-cp-hue,.gemboss-ei-cp-alpha)::-moz-range-thumb{width:12px;height:12px;border:2px solid #fff;border-radius:50%;background:transparent;box-shadow:0 0 0 1px #00000059}.gemboss-ei-cp :is(.gemboss-ei-cp-hue,.gemboss-ei-cp-alpha):focus-visible{box-shadow:0 0 0 2px var(--ui-surface,#fff),0 0 0 4px var(--ui-focus,#5661f5)}.gemboss-ei-cp-row{display:flex;align-items:center;gap:var(--ui-space-2,8px)}.gemboss-ei-cp-now{flex:none;width:32px;height:32px;box-sizing:border-box;border:1px solid var(--ui-border,#e5e7ea);border-radius:var(--ui-radius-md,8px);background:linear-gradient(var(--cp-now,#fff),var(--cp-now,#fff)),conic-gradient(#d8dbe0 25%,#fff 0 50%,#d8dbe0 0 75%,#fff 0) 0 0/8px 8px}.gemboss-ei-cp-hex{flex:1;min-width:0;font-variant-numeric:tabular-nums;text-transform:uppercase}.gemboss-ei-cp-pct{flex:none;min-width:36px;text-align:right;font-size:var(--ui-fs-caption,12px);color:var(--ui-text-muted,#686b71);font-variant-numeric:tabular-nums}.gemboss-ei-cp-drop{flex:none;display:grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid var(--ui-border,#e5e7ea);border-radius:var(--ui-radius-md,8px);background:var(--ui-surface,#fff);color:var(--ui-text-strong,#1b1c1e);cursor:pointer}.gemboss-ei-cp-drop:hover{background:var(--ui-surface-2,#eceef2)}.gemboss-ei-cp-drop:focus-visible{outline:2px solid var(--ui-focus,#5661f5);outline-offset:1px}.gemboss-ei-cp-group{display:flex;flex-direction:column;gap:6px}.gemboss-ei-cp-label{font-size:var(--ui-fs-caption,12px);line-height:16px;font-weight:550;color:var(--ui-text-muted,#686b71)}.gemboss-ei-cp-chips{display:flex;flex-wrap:wrap;gap:var(--ui-space-2,8px)}.gemboss-ei-cp-none{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:0 10px 0 6px;border:1px solid var(--ui-border,#e5e7ea);border-radius:var(--ui-radius-md,8px);background:var(--ui-surface,#fff);font:inherit;font-size:var(--ui-fs-caption,12px);font-weight:550;color:var(--ui-text-strong,#1b1c1e);cursor:pointer}.gemboss-ei-cp-none[aria-pressed=true]{border-color:var(--ui-focus,#5661f5);box-shadow:inset 0 0 0 1px var(--ui-focus,#5661f5)}.gemboss-ei-cp-none:focus-visible{outline:2px solid var(--ui-focus,#5661f5);outline-offset:1px}.gemboss-ei-cp-none-sw{width:16px;height:16px;box-sizing:border-box;border:1px solid var(--ui-border,#e5e7ea);border-radius:4px;background:linear-gradient(to top right,#0000 44%,var(--gemboss-danger,#d72c0d) 44% 56%,#0000 56%),#fff}.gemboss-ei-color-box{position:relative;display:flex;flex:1;min-width:0;container-type:inline-size}.gemboss-ei-color-name{position:absolute;inset:0;display:flex;align-items:center;padding:0 2px 0 8px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;pointer-events:none;font-size:var(--p-font-size-325,13px);color:var(--ui-text,#1b1c1e)}.gemboss-ei-color-name>span:not(.gemboss-ei-color-name__text){flex:none;color:var(--ui-text-muted,#686b71);white-space:pre}.gemboss-ei-color-name__text{min-width:0;overflow:hidden;text-overflow:ellipsis}@container (max-width:150px){.gemboss-ei-color-name>span:not(.gemboss-ei-color-name__text){display:none}}.gemboss-ei-color-box>[data-theme-colour]{color:transparent}.gemboss-ei-color>.gemboss-ei-color-group{flex:1 1 calc(13.5ch + 19px);gap:0;padding:0}.gemboss-ei-color>.gemboss-ei-color-group:not(:has(>[data-alpha]:not([hidden]))){flex-basis:calc(8.8ch + 12px)}.gemboss-ei-color-group>.gemboss-ei-color-box{align-self:stretch}.gemboss-ei-color .gemboss-ei-color-group .gemboss-ei-inp{padding:0 2px 0 8px;background:transparent}.gemboss-ei-block .gemboss-ei-color-group{background:var(--gemboss-surface)}.gemboss-ei-color-group>.gemboss-ei-inp[data-alpha]{flex:0 0 calc(4.7ch + 7px);box-sizing:border-box;padding:0 3px;border-left:1px solid var(--p-color-input-border,var(--gemboss-field-line));text-align:center}.gemboss-ei-color-group .gemboss-ei-inp:focus-visible{box-shadow:inset 0 -2px 0 var(--ui-focus,#5661f5)}@media (pointer:coarse),(max-width:47.9975em){.gemboss-ei-color-name{font-size:16px}@container (max-width:200px){.gemboss-ei-color-name>span:not(.gemboss-ei-color-name__text){display:none}}.gemboss-ei-color .gemboss-ei-swatch{width:44px;height:44px}.gemboss-ei-color-group>.gemboss-ei-inp[data-alpha]{min-width:44px}.gemboss-ei-color>.gemboss-ei-color-group{flex-basis:calc(8.8ch + 12px + max(4.7ch + 7px,44px))}.gemboss-ei-cp :is(.gemboss-ei-cp-hue,.gemboss-ei-cp-alpha){height:44px;border-radius:0;background-clip:content-box;padding:16px 0;box-sizing:border-box}.gemboss-ei-cp-hue{background:linear-gradient(to right,red,#ff0 17%,#0f0 33%,#0ff,#00f 67%,#f0f 83%,red) content-box}.gemboss-ei-cp :is(.gemboss-ei-cp-hue,.gemboss-ei-cp-alpha)::-webkit-slider-thumb{width:24px;height:24px}.gemboss-ei-cp-drop,.gemboss-ei-cp-now{width:44px;height:44px}.gemboss-ei-cp-none{min-height:44px}}
|
package/src/editor-plain.js
CHANGED
|
@@ -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),i=r?r.getBoundingClientRect().width:0;return i>0?Math.max(e.min,Math.min(e.cap,i-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,i){var a=d(t),n=m(t);if(a){var s=i??M(t),l=h(t),o=Math.round(Math.min(s,Math.max(l.min,e)));if(a.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=a.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 i=e.getAttribute("data-gb-storage"),a=E(t);if(i)try{var n=Number(localStorage.getItem(i));n>=h(t).min&&n<=h(t).cap&&(a=n)}catch{}I(t,a),e.classList.contains("is-chat-collapsed")||v(t,a,!1)}}function G(t,e){var r=d(t);if(r&&!(e.button!==0||e.isPrimary===!1)){e.preventDefault();var i=r.getBoundingClientRect().left,a=M(t),n=0,s=E(t);document.body.classList.add("ui-resizing");var l=function(f){s=f.clientX-i-C,n||(n=requestAnimationFrame(function(){n=0,v(t,s,!1,a)}))},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,a)};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,i=E(t),a=h(t);if(e.key==="ArrowLeft")i-=r;else if(e.key==="ArrowRight")i+=r;else if(e.key==="Home")i=a.min;else if(e.key==="End")i=M(t);else return;e.preventDefault(),v(t,i,!0)}}function X(t,e){var r=d(t);if(r){var i=!r.classList.contains("is-chat-collapsed");r.classList.toggle("is-chat-collapsed",i),i?r.style.setProperty("--gemboss-chat-w","0px"):v(t,P(t),!1),e.classList.toggle("collapsed",i),e.setAttribute("aria-pressed",String(i)),e.setAttribute("aria-label",i?"Show chat panel":"Hide chat panel"),e.title=i?"Show chat panel":"Hide chat \u2014 full-width preview";var a=e.querySelector("rect[fill='currentColor']");a&&(a.style.display=i?"none":""),u(t,"gemboss:editor-chat",{collapsed:i})}}function J(t,e){var r=e.closest(".gemboss-pv-devices");r&&(r.querySelectorAll(".gemboss-pv-device").forEach(function(i){var a=i===e;i.classList.toggle("active",a),i.setAttribute("aria-pressed",String(a))}),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"),i=d(t);i&&(i.setAttribute("data-mobile-pane",r),e.parentNode.querySelectorAll(".gemboss-editor-mobile-tab").forEach(function(a){var n=a===e;a.classList.toggle("active",n),a.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(),i=e.right-r.right;r.left+i<8&&(i=8-r.left),Math.abs(i)>=.5&&(t.menu.style.right=parseFloat(t.menu.style.right)-i+"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 i=c&&c.trigger===e;return y(!1),i||(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 i=d(r);i&&typeof ResizeObserver=="function"&&new ResizeObserver(function(){i.classList.contains("is-chat-collapsed")||v(r,P(r),!1)}).observe(i),r.addEventListener("pointerdown",function(a){var n=a.target.closest(".gemboss-editor-resizer");n&&n===m(r)&&G(r,a)}),r.addEventListener("keydown",function(a){a.target.classList&&a.target.classList.contains("gemboss-editor-resizer")&&a.target===m(r)&&V(r,a)}),r.addEventListener("click",function(a){var n=a.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)){a.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,i,a,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(i=l[0].indexOf(",")>=0?l[0].split(","):l[0].trim().split(/\s+/),l.length===2&&i.push(l[1]),l.length>2||i.length<3||i.length>4)return null;var o=[];for(a=0;a<i.length;a++){var f=i[a].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*(a<3?255:1)),o.push(a<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),i=b(t);return r?B(t,r,i?i.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,i=R(r),a=i.some(function(n){return n.hasAttribute("tabindex")});i.forEach(function(n){var s=n===t;n.setAttribute("aria-selected",String(s)),n.classList.contains("gemboss-ei-tab")&&n.classList.toggle("on",s),a&&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:i.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 i=r.findIndex(function(n){return n.getAttribute("aria-selected")==="true"}),a=e.key==="ArrowRight"?(i+1)%r.length:(i-1+r.length)%r.length;e.preventDefault(),z(r[a],!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 ie(t){var e=t.closest(".gemboss-ei-seg");Array.prototype.forEach.call(e.querySelectorAll("button"),function(r){var i=r===t;r.classList.toggle("active",i),r.classList.toggle("on",i),r.hasAttribute("aria-pressed")&&r.setAttribute("aria-pressed",String(i))}),u(e,"gemboss:editor-seg",{value:$(t)})}var ae={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 ae[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 i=oe(e);return i?"A mix of "+i.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 i=e&&r(e[1]),a=e&&r(e[2]);return i&&a?i+" + "+a: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 i=r.value,a=b(i),n=!i||!!a;if(e.tagName==="BUTTON"){var s=e.querySelector(".gemboss-ei-swatch-fill");s&&(a?s.style.setProperty("--sw","rgba("+a.r+", "+a.g+", "+a.b+", "+a.a+")"):s.style.removeProperty("--sw")),i?e.removeAttribute("data-empty"):e.setAttribute("data-empty","")}else e.value=a?q(a):"#000000";var l=t.querySelector("input[data-alpha]");a&&!l&&(l=document.createElement("input"),l.className="gemboss-field gemboss-ei-inp",l.setAttribute("data-alpha",""),l.setAttribute("inputmode","numeric"),l.setAttribute("aria-label",(e.getAttribute("aria-label")||"Color swatch").replace(/ swatch$/,"")+" opacity"),r.parentNode.insertBefore(l,r.nextSibling)),l&&(l.hidden=!a,a&&(l.value=Math.round(a.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(i);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,i=0;i<e.length&&!r;i++)r=e[i].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(i,a){e[r[a]]=i.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])"),i=e.querySelector("input[data-gb-swatch-native]");i||(i=document.createElement("input"),i.type="color",i.setAttribute("data-gb-swatch-native",""),i.tabIndex=-1,i.setAttribute("aria-hidden","true"),i.style.cssText="position:absolute;width:1px;height:1px;opacity:0;pointer-events:none",t.parentNode.insertBefore(i,t.nextSibling));var a=r&&b(r.value);i.value=a?q(a):"#ffffff";try{i.showPicker?i.showPicker():i.click()}catch{i.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 i=r.target,a;if(!(!i.closest||!x(r))){if(a=i.closest('.gemboss-ec-tabs > [role="tab"], .gemboss-ei-tabs > [role="tab"]'))return z(a,!1);if(a=i.closest(".gemboss-ei-gh"))return re(a);if((a=i.closest(".gemboss-ei-seg button"))&&!a.disabled)return ie(a);if((a=i.closest("button.gemboss-ei-swatch"))&&!a.disabled)return fe(a);if((a=i.closest("[data-gb-image-clear]"))&&!a.disabled){var n=a.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 i=r.target;if(!(!i.closest||!x(r))){var a=i.closest('.gemboss-ec-tabs[role="tablist"], .gemboss-ei-tabs[role="tablist"]');if(a&&i.getAttribute("role")==="tab")return te(a,r);r.key==="Enter"&&i.tagName==="INPUT"&&i.type!=="color"&&i.type!=="range"&&i.closest(".gemboss-ei-color, .gemboss-ei-edgebox, .gemboss-ei-img")&&(r.preventDefault(),i.blur())}}),e.addEventListener("input",function(r){var i=r.target;if(!(!i.closest||!x(r))){if(i.classList.contains("gemboss-ei-range")){le(i),u(i,"gemboss:editor-range",{value:Number(i.value)});return}if(i.classList.contains("gemboss-ei-swatch")||i.hasAttribute("data-gb-swatch-native")){var a=i.closest(".gemboss-ei-color"),n=a&&a.querySelector("input:not([type=color]):not([data-alpha])"),s=n?W(n.value,i.value):i.value;n&&(n.value=s),a&&i.hasAttribute("data-gb-swatch-native")&&A(a),u(a||i,"gemboss:editor-color",{value:s})}}}),e.addEventListener("focusout",function(r){var i=r.target;if(!(!i.closest||i.tagName!=="INPUT"||!x(r))){var a;if(i.hasAttribute("data-alpha")&&(a=i.closest(".gemboss-ei-color"))){var n=a.querySelector("input:not([type=color]):not([data-alpha])"),s=Number(String(i.value).replace(/%/g,"").trim()),l=n&&String(i.value).trim()&&isFinite(s)?_(n.value,s):null;l&&l!==n.value?(n.value=l,A(a),u(a,"gemboss:editor-color",{value:l})):A(a);return}if(i.type!=="color"&&(a=i.closest(".gemboss-ei-color"))){A(a),u(a,"gemboss:editor-color",{value:i.value});return}if(a=i.closest(".gemboss-ei-edgebox")){u(a,"gemboss:editor-edges",ue(a));return}(a=i.closest(".gemboss-ei-img"))&&K(a,i)}}),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 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);
|
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:hidden}.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-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}}@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-bundle-look .gemboss-ei-body :is(button:where(:not(.gemboss-ei-help)),input){min-height:44px}.gemboss-bundle-look .gemboss-ei-body input[type=color]{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: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-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}@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}}
|
|
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}@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-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}
|