/**
 * Design Studio shell (desktop).
 *
 *   ┌───────────────────────────────────────────────────────────────┐
 *   │ Navigator bar:  logo · design name · account · Save · Cart    │
 *   ├────────┬──────────────────────────────────────┬───────────────┤
 *   │ CREATE │ Options: Background · Look · Text    │ LAYERS        │
 *   │ LIBRARY├──────────────────────────────────────┤ + adjustments │
 *   │        │            the guitar                │               │
 *   │ help   ├──────────────────────────────────────┤               │
 *   │ reset  │ Edit tools: undo · rotate · flip …   │               │
 *   │        ├──────────────────────────────────────┴───────────────┤
 *   │        │ Status: print quality · zoom · view · 3D             │
 *   └────────┴──────────────────────────────────────────────────────┘
 *
 * Markup comes from cfpe_get_editor_inner_html(). Phones (≤700px) keep their
 * own dock + bottom-sheet UI; everything that changes the layout is therefore
 * inside the (min-width:701px) block. Printed after the editor's inline CSS
 * (wp_head priority 101) so it can restyle it without extra !important.
 */

/* ──────────────────────────────────────────────────────────
 * 1. Shared: icons, and things phones must not show
 * ────────────────────────────────────────────────────────── */
.cfpe-i{display:inline-block;flex:0 0 auto;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;pointer-events:none;}
/* Phones keep the plain text labels on their strip buttons. */
.cfpe-tool--text>.cfpe-i,.cfpe-page-reset>.cfpe-i,.cfpe-tool--stack>.cfpe-i{display:none;}
.cfpe-tool--stack .cfpe-tool__label{display:inline;}
.cfpe-layers__sub{display:none;}
.cfpe-layers__toggle>.cfpe-i{display:none;}
.cfpe-layers__toggle-text{display:inline;}
.cfpe-layers__item .cfpe-i{width:16px;height:16px;}
.cfpe-layers__btn-icon{display:none;}
.cfpe-layers__adjust-reset>.cfpe-i{display:none;}
.cfpe-studio-bar{display:none;}
.cfpe-nav__studio-title,.cfpe-nav__studio-actions{display:none;}
/* The editor page never scrolls (desktop: fixed shell, phones: locked body), so the bar is always in view and the floating "Navigator" tab
   has no job here. On a first visit the beckon styling also drags that tab into the bar's flow (invisible, but it adds a 28px dark strip). */
body.cfpe-editor-active #cfpe-nav .cfpe-nav__fab{display:none !important;}
/* Phones keep the original header: "Sign In · Cart · Navigator". (The studio's DOM order is account, Navigator, actions, cart.) */
@media (max-width:700px), (max-height:500px) and (pointer:coarse){
	body.cfpe-editor-active #cfpe-nav .cfpe-nav__cart{order:1;}
	body.cfpe-editor-active #cfpe-nav .cfpe-nav__toggle{order:2;}
}
.cfpe-bg-swatch{display:none;}
.cfpe-bg-select-wrap__field{display:contents;}
.cfpe-rail__label{display:none;}
.cfpe-rail__icon,.cfpe-fold__icon{display:none;}
.cfpe-btn .cfpe-i--check{display:none;}
/* Mobile-only elements hidden by default on desktop */
.cfpe-nav__menu-btn,
.cfpe-studio-title__mobile-heading,
.cfpe-stage-float,
.cfpe-phone-history,
.cfpe-text-sheet__head,
.cfpe-text-sheet__entry,
.cfpe-text-sheet__tabs,
.cfpe-text-field-label,
.cfpe-text-size-step,
.cfpe-text-align-group--mobile,
.cfpe-layers__op-mobile-label,
.cfpe-layers__adjust-heading,
.cfpe-layers__done,
.cfpe-vt-sheet__head,
.cfpe-vt-sheet__tabs,
.cfpe-vt-sheet__caption,
.cfpe-vt-sheet__selection,
.cfpe-tool__mobile-deg,
.cfpe-tool__mobile-text,
.cfpe-fill-body__mobile,
.cfpe-vt-sheet__view-pair,
.cfpe-vt-sheet__orient-seg,
.cfpe-vt-sheet__safe-row,
.cfpe-library__back,
.cfpe-library__subtitle,
.cfpe-library__title-mobile,
.cfpe-library__full-mobile,
.cfpe-library__full-inline,
.cfpe-library__search-icon,
.cfpe-mobile-menu,
.cfpe-bg-sheet{display:none;}
.cfpe-text-size-wrap,
.cfpe-text-size-stepper,
.cfpe-text-style-wrap,
.cfpe-text-style-btns,
.cfpe-library__head-copy,
.cfpe-library__search-wrap,
.cfpe-library__filter-row{display:contents;}

/* Graphic library (all sizes): the header and search stay put; filters, results,
   "Load more" and the full-catalog link scroll together in one area. */
#cfpe-library .cfpe-library__body{
	flex:1 1 auto;
	min-height:0;
	display:flex;
	flex-direction:column;
	gap:.6rem;
	overflow-y:auto;
	overscroll-behavior:contain;
	-webkit-overflow-scrolling:touch;
}
#cfpe-library .cfpe-library__grid{flex:none;overflow:visible;grid-template-columns:repeat(2,minmax(0,1fr));}
#cfpe-library .cfpe-library__item{min-width:0;}
#cfpe-library .cfpe-library__thumb{width:100%;max-width:100%;height:auto;}
#cfpe-library .cfpe-library__more{flex:none;}
#cfpe-library .cfpe-library__full-sub{display:none;}
#cfpe-library .cfpe-library__catalog-cta{
	display:flex;
	flex-direction:column;
	align-items:center;
	gap:3px;
	flex:none;
	padding:.75rem .9rem;
	border:1px dashed rgba(231,200,140,0.45);
	border-radius:10px;
	color:#e7c88c;
	text-align:center;
	text-decoration:none;
}
#cfpe-library .cfpe-library__catalog-cta:hover{border-color:rgba(231,200,140,0.8);background:rgba(231,200,140,0.06);}
#cfpe-library .cfpe-library__catalog-cta-t{font-size:.82rem;font-weight:700;}
#cfpe-library .cfpe-library__catalog-cta-s{font-size:.7rem;color:rgba(236,231,223,0.6);}

/* ──────────────────────────────────────────────────────────
 * 2. Desktop studio
 * ────────────────────────────────────────────────────────── */
/* Desktop/tablet studio shell. Exclude landscape phones (short + coarse). */
@media (min-width:701px) and (min-height:501px), (min-width:701px) and (pointer:fine){

body.cfpe-editor-active{
	--cfpe-bar-h:56px;
	--cfpe-rail-w:176px;
	--cfpe-adminbar-h:0px;
	--cfpe-studio-top:calc(var(--cfpe-nav-top, 0px) + var(--cfpe-bar-h));
	--st-bg:#0c0c0e;
	--st-panel:#101012;
	--st-raise:#151517;
	--st-line:rgba(255,255,255,0.08);
	--st-line-2:rgba(255,255,255,0.14);
	--st-text:#ece7df;
	--st-dim:rgba(236,231,223,0.62);
	--st-faint:rgba(236,231,223,0.4);
	--st-gold:#e7c88c;
	--st-gold-hi:#f7e088;
	--st-ink:#17130a;
	--st-danger:#f0847f;
	/* The page itself never scrolls: <html> is locked below. <body> must NOT also be overflow:hidden. Its box is only as tall as the Navigator bar
	   (the studio is position:fixed), so it would clip anything hanging below the bar, like the first-visit pill under the Menu button. */
	overflow:visible !important;
	background:#0c0c0e !important;
}
body.admin-bar.cfpe-editor-active{--cfpe-adminbar-h:32px;}
@media (max-width:782px){body.admin-bar.cfpe-editor-active{--cfpe-adminbar-h:46px;}}
html.cfpe-editor-html{overflow:hidden !important;}
html:has(body.cfpe-editor-active){overflow:hidden !important;}

/* ── Navigator bar becomes the studio header ─────────────── */
body.cfpe-editor-active #cfpe-nav{height:var(--cfpe-bar-h);}
body.cfpe-editor-active #cfpe-nav .cfpe-nav__bar{
	display:grid;
	/* Logo and actions never get squeezed; the design name takes whatever room is left (centred when there is plenty). */
	grid-template-columns:minmax(max-content,1fr) minmax(0,auto) minmax(max-content,1fr);
	align-items:center;
	column-gap:20px;
	height:var(--cfpe-bar-h);
	min-height:0;
	padding:0 20px;
	background:#0f0f11;
	border-bottom:1px solid var(--st-line);
	font-family:"Orbitron","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
}
body.cfpe-editor-active #cfpe-nav .cfpe-nav__brand{justify-self:start;}
body.cfpe-editor-active #cfpe-nav .cfpe-nav__brand-logo{height:26px !important;}
body.cfpe-editor-active #cfpe-nav .cfpe-nav__studio-title{display:flex;justify-content:center;min-width:0;}
body.cfpe-editor-active #cfpe-nav .cfpe-nav__actions{justify-self:end;display:flex;align-items:center;gap:6px;min-width:0;}
body.cfpe-editor-active #cfpe-nav .cfpe-nav__studio-actions{display:flex;align-items:center;gap:10px;margin-left:8px;}
body.cfpe-editor-active #cfpe-nav .cfpe-nav__account,
body.cfpe-editor-active #cfpe-nav .cfpe-nav__toggle{
	min-height:38px;padding:0 12px;gap:8px;border-radius:9px;
	font:500 13px/1 "Orbitron","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
	letter-spacing:0;color:var(--st-text);
}
body.cfpe-editor-active #cfpe-nav .cfpe-nav__account:hover,
body.cfpe-editor-active #cfpe-nav .cfpe-nav__toggle:hover{background:rgba(255,255,255,0.06);color:#fff;}
body.cfpe-editor-active #cfpe-nav .cfpe-nav__account-icon{display:inline-flex;}
body.cfpe-editor-active #cfpe-nav .cfpe-nav__cart-icon{display:inline-flex;}
body.cfpe-editor-active #cfpe-nav .cfpe-nav__account-icon .cfpe-i,
body.cfpe-editor-active #cfpe-nav .cfpe-nav__cart-icon .cfpe-i{width:18px;height:18px;}
body.cfpe-editor-active #cfpe-nav .cfpe-nav__cart{
	order:3;min-height:38px;padding:0 16px;gap:8px;border-radius:9px;
	border:1px solid var(--st-line-2);background:transparent;color:var(--st-text);
	font:600 13px/1 "Orbitron","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:0;
	transition:background .12s ease,border-color .12s ease,color .12s ease;
}
body.cfpe-editor-active #cfpe-nav .cfpe-nav__cart:hover,
body.cfpe-editor-active #cfpe-nav .cfpe-nav__cart:focus{background:rgba(255,255,255,0.07);border-color:rgba(255,255,255,0.3);color:#fff;}
body.cfpe-editor-active #cfpe-nav .cfpe-nav__cart-count{height:18px;min-width:18px;font-size:.68rem;}
body.cfpe-editor-active #cfpe-nav .cfpe-nav__studio-actions{order:2;}
body.cfpe-editor-active #cfpe-nav .cfpe-nav__toggle{order:3;}
body.cfpe-editor-active #cfpe-nav .cfpe-nav__account{order:0;}
body.cfpe-editor-active #cfpe-nav .cfpe-nav__toggle .cfpe-nav__toggle-label{font-weight:500;}
/* Menu: the gold outline it has on every other page, in the Studio's own button shape beside Cart. */
body.cfpe-editor-active #cfpe-nav .cfpe-nav__toggle{border-color:rgba(229,193,120,0.55);color:var(--st-gold-hi);}
body.cfpe-editor-active #cfpe-nav .cfpe-nav__toggle:hover{background:rgba(229,193,120,0.12);color:var(--st-gold-hi);}
body.cfpe-editor-active #cfpe-nav .cfpe-nav__toggle[aria-expanded="true"]{background:rgba(229,193,120,0.14);}
/* The first-visit pill keeps its place under the Studio's taller button. */
body.cfpe-editor-active #cfpe-nav.cfpe-nav-beckon .cfpe-nav__toggle::before{top:calc(100% + 8px);}

/* First-visit pill under the Menu button: it hangs below the bar over the options row, so here it gets a limited run instead of
   staying on top of the tools for good. The gold ring + dot on the Navigator tab remain as the quiet cue until it is opened. */
body.cfpe-editor-active #cfpe-nav.cfpe-nav-beckon .cfpe-nav__toggle::before{animation:cfpe-nav-hint-out .5s ease 15.6s forwards;}
@media (prefers-reduced-motion:no-preference){
	body.cfpe-editor-active #cfpe-nav.cfpe-nav-beckon .cfpe-nav__toggle::before{animation:cfpe-nav-bob 1.3s ease-in-out 12,cfpe-nav-hint-out .5s ease 15.6s forwards;}
}
@keyframes cfpe-nav-hint-out{to{opacity:0;visibility:hidden;}}

/* Design name (logged-in customers) */
.cfpe-docname{display:inline-flex;align-items:center;gap:8px;max-width:100%;margin:0;padding:0 10px;min-height:36px;border:1px solid transparent;border-radius:9px;color:var(--st-text,#ece7df);cursor:text;transition:background .12s ease,border-color .12s ease;}
.cfpe-docname:hover{background:rgba(255,255,255,0.05);}
.cfpe-docname:focus-within{background:rgba(255,255,255,0.06);border-color:rgba(231,200,140,0.6);}
.cfpe-docname .cfpe-i{width:15px;height:15px;color:var(--st-dim,rgba(236,231,223,.62));}
/* The field is as wide as its text (script mirrors the value into data-value), so the pencil sits right beside the name. */
.cfpe-docname__field{display:inline-grid;align-items:center;min-width:0;max-width:clamp(150px,26vw,380px);}
.cfpe-docname__field::after{content:attr(data-value) " ";grid-area:1 / 1;visibility:hidden;white-space:pre;overflow:hidden;font:500 14px/1.2 "Orbitron","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;pointer-events:none;}
.cfpe-docname__input{grid-area:1 / 1;-webkit-appearance:none;appearance:none;width:0;min-width:100%;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;outline:none;color:#f4efe6;font:500 14px/1.2 "Orbitron","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;text-align:left;text-overflow:ellipsis;}
.cfpe-docname__input::placeholder{color:rgba(236,231,223,0.75);opacity:1;}
.cfpe-docname__input:focus::placeholder{color:rgba(236,231,223,0.35);}

/* Primary actions: gold = the next thing to do. */
.cfpe-studio-actions{display:flex;align-items:center;gap:10px;}
.cfpe-studio-actions .cfpe-btn{
	min-height:38px;padding:0 18px;gap:8px;border-radius:9px;
	font:600 15px/1 "Rajdhani","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.01em;text-transform:none;white-space:nowrap;
	transition:background .12s ease,border-color .12s ease,color .12s ease,box-shadow .12s ease;
}
.cfpe-studio-actions .cfpe-btn .cfpe-i{width:17px;height:17px;}
.cfpe-studio-actions .cfpe-btn--save,
.cfpe-studio-actions .cfpe-btn--cart{
	border:1px solid #efd49b;
	background-color:#e7c88c;
	background-image:linear-gradient(180deg,#f4dcaa,#e7c88c);
	color:var(--st-ink,#17130a);
	box-shadow:0 1px 0 rgba(255,255,255,0.35) inset,0 4px 16px rgba(231,200,140,0.16);
}
.cfpe-studio-actions .cfpe-btn--save:hover:not(:disabled),
.cfpe-studio-actions .cfpe-btn--cart:hover:not(:disabled){
	background-color:#f9e6b9 !important;
	background-image:linear-gradient(180deg,#f9e6b9,#edd197) !important;
	border-color:#fff3d1 !important;
	color:#000 !important;
}
.cfpe-studio-actions .cfpe-btn--save:focus-visible,
.cfpe-studio-actions .cfpe-btn--cart:focus-visible{outline:none;box-shadow:0 0 0 2px #0f0f11,0 0 0 4px var(--st-gold-hi,#f7e088);}
/* Saved: the work is done, so Save steps back and Add to cart leads. */
.cfpe-studio-actions .cfpe-btn--save:disabled{
	opacity:1;cursor:default;
	background:rgba(231,200,140,0.1);border-color:rgba(231,200,140,0.32);color:#f7e088;box-shadow:none;
}
.cfpe-studio-actions .cfpe-btn--save.is-saved .cfpe-i--save{display:none;}
.cfpe-studio-actions .cfpe-btn--save.is-saved .cfpe-i--check{display:inline-block;}
.cfpe-studio-actions .cfpe-btn--cart:disabled{opacity:.7;cursor:default;}

/* ── The shell ───────────────────────────────────────────── */
body.cfpe-editor-active #cfpe-editor.cfpe-studio{
	position:fixed !important;
	z-index:40;
	top:var(--cfpe-studio-top);left:0;right:0;bottom:0;
	width:auto !important;max-width:none !important;height:auto !important;min-height:0 !important;
	margin:0 !important;padding:0 !important;
	border:0 !important;border-radius:0 !important;box-shadow:none !important;
	background:var(--st-bg) !important;
	-webkit-backdrop-filter:none !important;backdrop-filter:none !important;
	display:grid !important;
	grid-template-columns:var(--cfpe-rail-w) minmax(0,1fr) var(--cfpe-layers-w,300px);
	grid-template-rows:auto auto minmax(0,1fr) auto auto;
	column-gap:0;row-gap:0;align-items:stretch;
	overflow:hidden;
	color:var(--st-text);
	font-family:"Orbitron","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
}
body.cfpe-editor-active #cfpe-editor.cfpe-studio:not(.cfpe-studio--docked){top:var(--cfpe-adminbar-h);}
body.cfpe-editor-active #cfpe-editor.cfpe-studio:has(#cfpe-layers.is-collapsed){grid-template-columns:var(--cfpe-rail-w) minmax(0,1fr) 56px;}
body.cfpe-editor-active #cfpe-editor.cfpe-studio>*{margin-top:0 !important;}
body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-ed-head{display:none !important;}

/* Wrappers dissolve into the grid. */
body.cfpe-editor-active #cfpe-editor.cfpe-studio>.cfpe-ed-composer-bar,
body.cfpe-editor-active #cfpe-editor.cfpe-studio>.cfpe-ed-workspace,
body.cfpe-editor-active #cfpe-editor.cfpe-studio #cfpe-toolbar,
body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-toolbar__tools{
	display:contents !important;
}

/* Undocked header row (no Navigator on this page). */
body.cfpe-editor-active #cfpe-editor.cfpe-studio:not(.cfpe-studio--docked)>.cfpe-studio-bar{
	grid-column:1 / -1;grid-row:1;
	display:flex;align-items:center;justify-content:space-between;gap:16px;
	min-height:var(--cfpe-bar-h);padding:0 20px;
	background:#0f0f11;border-bottom:1px solid var(--st-line);
}
body.cfpe-editor-active #cfpe-editor.cfpe-studio:not(.cfpe-studio--docked)>.cfpe-studio-bar .cfpe-studio-title{flex:1 1 auto;display:flex;justify-content:flex-start;min-width:0;}
body.cfpe-editor-active #cfpe-editor.cfpe-studio--docked>.cfpe-studio-bar{display:none;}

/* ── Left rail: create + library ─────────────────────────── */
.cfpe-rail{
	grid-column:1;grid-row:2 / -1;
	position:relative;z-index:26;
	display:flex;flex-direction:column;min-height:0;
	padding:20px 12px 14px;
	background:var(--st-panel);
	border-right:1px solid var(--st-line);
}
.cfpe-rail__group{display:flex;flex-direction:column;gap:2px;min-width:0;}
.cfpe-rail__group--library{margin-top:16px;padding-top:18px;border-top:1px solid var(--st-line);}
.cfpe-rail__group--foot{margin-top:auto;padding-top:12px;border-top:1px solid var(--st-line);}
.cfpe-rail__group--library:not(:has(>details:not([style*="none"]))){display:none;}
.cfpe-rail__label{display:block;margin:0 0 8px;padding:0 10px;font-size:10.5px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--st-faint);}
.cfpe-rail__icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:22px;height:22px;color:var(--st-gold);}
.cfpe-rail__icon .cfpe-i{width:21px;height:21px;}
.cfpe-rail__text{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

.cfpe-rail .cfpe-ed-composer-btn,
.cfpe-rail .cfpe-fold__summary,
.cfpe-rail .cfpe-help-menu__toggle{
	display:flex;align-items:center;justify-content:flex-start;gap:12px;
	width:100%;min-height:40px;margin:0;padding:0 10px;
	border:0;border-radius:9px;background:transparent;box-shadow:none;
	color:var(--st-text);font:600 15px/1.2 "Rajdhani","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:0;text-transform:none;text-align:left;
	cursor:pointer;
}
.cfpe-rail .cfpe-ed-composer-btn:hover:not(:disabled),
.cfpe-rail .cfpe-fold__summary:hover,
.cfpe-rail .cfpe-help-menu__toggle:hover{background:rgba(231,200,140,0.09);color:#fff;border:0;}
.cfpe-rail .cfpe-ed-composer-btn:focus-visible,
.cfpe-rail .cfpe-fold__summary:focus-visible,
.cfpe-rail .cfpe-help-menu__toggle:focus-visible{outline:none;box-shadow:0 0 0 2px var(--st-gold);}
.cfpe-rail .cfpe-fold__summary::after,
.cfpe-rail .cfpe-help-menu__toggle::after{display:none;}
.cfpe-rail .cfpe-fold[open]>.cfpe-fold__summary,
.cfpe-rail .cfpe-help-menu[open]>.cfpe-help-menu__toggle{background:rgba(231,200,140,0.14);color:var(--st-gold-hi);border:0;}
.cfpe-rail .cfpe-ed-composer-btn--upload,
.cfpe-rail .cfpe-ed-composer-btn--library{background:transparent;border:0;color:var(--st-text);font-weight:500;}
.cfpe-rail .cfpe-ed-composer-btn--upload:hover,
.cfpe-rail .cfpe-ed-composer-btn--library:hover{background:rgba(231,200,140,0.09);}
/* "Add a graphic" starts hidden and is revealed by script. */
.cfpe-rail #cfpe-open-library[style*="display: none"],
.cfpe-rail #cfpe-open-library[style*="display:none"]{display:none !important;}
.cfpe-rail .cfpe-help-menu__toggle .cfpe-rail__icon{color:var(--st-dim);}
.cfpe-rail .cfpe-ed-composer-btn--danger{color:var(--st-danger);border:0;}
.cfpe-rail .cfpe-ed-composer-btn--danger .cfpe-rail__icon{color:var(--st-danger);}
.cfpe-rail .cfpe-ed-composer-btn--danger:hover:not(:disabled){background:rgba(240,132,127,0.1);color:#ffb3af;}
.cfpe-rail__group>.cfpe-fold,
.cfpe-rail__group>.cfpe-help-menu{position:relative !important;display:block !important;width:100% !important;margin:0 !important;padding:0 !important;border:0 !important;}
.cfpe-rail__group>.cfpe-fold[style*="display: none"],
.cfpe-rail__group>.cfpe-fold[style*="display:none"]{display:none !important;}

/* Library + help flyouts open beside the rail, over the stage. */
.cfpe-rail .cfpe-fold>.cfpe-fold__panel,
.cfpe-rail .cfpe-help-menu__panel{
	position:absolute !important;
	top:0;bottom:auto;
	left:calc(100% + 24px);right:auto;
	z-index:90;
	width:min(372px,calc(100vw - var(--cfpe-rail-w) - 48px));
	max-height:min(68vh,520px);
	padding:14px;
	border:1px solid rgba(231,200,140,0.3);border-radius:14px;
	background:#141416;
	box-shadow:0 22px 56px rgba(0,0,0,0.6);
	inset-block-start:0;
}
.cfpe-rail .cfpe-help-menu__panel{top:auto;bottom:0;inset-block-start:auto;width:min(384px,calc(100vw - var(--cfpe-rail-w) - 48px));max-height:min(78vh,560px);}
.cfpe-rail .cfpe-recent-assets__hint{margin:0 0 10px;font-size:11.5px;line-height:1.4;color:var(--st-dim);}
.cfpe-rail .cfpe-recent-assets__hint:empty{display:none;}
.cfpe-rail .cfpe-recent-assets__row{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px;padding:0;overflow:visible;}
.cfpe-rail .cfpe-recent-assets__item{min-width:0;}
.cfpe-rail .cfpe-recent-assets__btn{width:100%;height:auto;aspect-ratio:1 / 1;border-radius:9px;}
.cfpe-rail .cfpe-templates__btn{width:100%;height:auto;aspect-ratio:4 / 3;}
.cfpe-rail .cfpe-recent-assets__label{color:inherit;}

/* ── Options bar: appearance ─────────────────────────────── */
.cfpe-options{
	grid-column:2;grid-row:2;
	position:relative;z-index:40;
	display:flex;flex-wrap:wrap;align-items:center;gap:6px 6px;
	min-width:0;min-height:56px;padding:8px 16px;box-sizing:border-box;
	background:var(--st-bg);
	border-bottom:1px solid var(--st-line);
}
.cfpe-options>*{flex:0 0 auto;align-self:center;}
.cfpe-options .cfpe-layers-sheet-btn{display:none !important;}
.cfpe-options .cfpe-bg-select-wrap{
	gap:12px;min-height:0;max-width:100%;margin:0 6px 0 0;padding:0;
	border:0;border-radius:0;background:transparent;
}
.cfpe-options .cfpe-bg-select-wrap__label{font-size:13px;font-weight:500;color:var(--st-dim);}
.cfpe-options .cfpe-bg-select-wrap__field{
	position:relative;display:inline-flex;align-items:center;gap:10px;
	min-height:38px;max-width:260px;padding:0 4px 0 10px;
	border:1px solid var(--st-line-2);border-radius:9px;background:var(--st-raise);
	transition:border-color .12s ease;
}
.cfpe-options .cfpe-bg-select-wrap__field:hover{border-color:rgba(231,200,140,0.45);}
.cfpe-options .cfpe-bg-select-wrap__field:focus-within{border-color:var(--st-gold);}
.cfpe-options .cfpe-bg-swatch{display:block;flex:0 0 auto;width:22px;height:22px;border-radius:6px;background:#f4efe1;box-shadow:inset 0 0 0 1px rgba(255,255,255,0.22),0 1px 2px rgba(0,0,0,0.5);}
.cfpe-options .cfpe-bg-select{
	flex:1 1 auto;min-width:0;max-width:210px;min-height:36px;margin:0;padding:0 26px 0 0;
	border:0;border-radius:0;background-color:transparent;
	background-position:right .5rem center;background-size:.6rem;
	color:var(--st-text);font:500 13px/1.2 "Orbitron","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
}
.cfpe-options .cfpe-bg-select:focus,
.cfpe-options .cfpe-bg-select:focus-visible{outline:2px solid var(--st-gold-hi,#f7e088) !important;outline-offset:2px !important;border-radius:4px;}

.cfpe-options>.cfpe-fold{position:static !important;display:inline-flex !important;align-items:center;margin:0 !important;padding:0 !important;border:0 !important;width:auto !important;max-width:none !important;}
.cfpe-options>.cfpe-fold[style*="display: none"],
.cfpe-options>.cfpe-fold[style*="display:none"]{display:none !important;}
.cfpe-options>details#cfpe-guitar-fold{position:relative !important;}
.cfpe-options .cfpe-fold__summary{
	min-height:38px;gap:9px;padding:0 12px;
	border:0;border-radius:9px;background:transparent;
	color:var(--st-text);font:500 13px/1 "Orbitron","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
}
.cfpe-options .cfpe-fold__summary:hover{background:rgba(255,255,255,0.06);border:0;color:#fff;}
.cfpe-options .cfpe-fold[open]>.cfpe-fold__summary{background:rgba(231,200,140,0.13);color:var(--st-gold-hi);border:0;}
.cfpe-options .cfpe-fold__summary:focus-visible{outline:none;box-shadow:0 0 0 2px var(--st-gold);}
.cfpe-options .cfpe-fold__summary::after{width:.38rem;height:.38rem;margin-left:2px;opacity:.7;}
.cfpe-options .cfpe-fold__icon,
.cfpe-options .cfpe-guitar-fold__icon{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;color:var(--st-gold);font-size:inherit;}
.cfpe-options .cfpe-fold__icon .cfpe-i,
.cfpe-options .cfpe-guitar-fold__icon .cfpe-i{width:20px;height:20px;}
.cfpe-options>#cfpe-save-template{
	display:inline-flex;align-items:center;gap:9px;min-height:38px;margin:0;padding:0 12px;
	border:0;border-radius:9px;background:transparent;color:var(--st-text);
	font:500 13px/1 "Orbitron","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
}
.cfpe-options>#cfpe-save-template:hover:not(:disabled){background:rgba(255,255,255,0.06);color:#fff;border:0;}
.cfpe-options>#cfpe-save-template .cfpe-rail__icon{width:20px;height:20px;color:var(--st-dim);}
.cfpe-options>#cfpe-save-template .cfpe-rail__icon .cfpe-i{width:19px;height:19px;}

/* Option dropdowns hang from the bar, over the stage. */
.cfpe-options .cfpe-fold>.cfpe-fold__panel,
.cfpe-options #cfpe-text-controls{
	position:absolute !important;
	top:calc(100% + 6px);bottom:auto;left:0;right:auto;
	inset-block-start:calc(100% + 6px);
	z-index:90;
	max-height:min(70vh,640px);
	border:1px solid rgba(231,200,140,0.3);border-radius:14px;background:#141416;
	box-shadow:0 22px 56px rgba(0,0,0,0.6);
}
.cfpe-options>.cfpe-fold--text>.cfpe-fold__panel,
.cfpe-options #cfpe-text-controls{
	left:12px;width:min(1040px,calc(100% - 24px));max-height:min(60vh,420px);padding:12px 14px;
	overflow:visible;
}
/* Each row of the Text style box wraps inside the box. On a narrow stage (an
   iPad held upright with Layers open) the row holding Curve was wider than the
   box and ran out of its border, onto the Layers panel. */
.cfpe-options #cfpe-text-controls .cfpe-text-group{
	flex-wrap:wrap;
	row-gap:8px;
	min-width:0;
	max-width:100%;
}
.cfpe-text-swatches{display:inline-flex;flex-wrap:wrap;gap:6px;margin-left:8px;vertical-align:middle;}
.cfpe-text-swatch{-webkit-appearance:none;appearance:none;width:22px;height:22px;margin:0;padding:0;border:1px solid rgba(255,255,255,0.35);border-radius:50%;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(0,0,0,0.35);}
.cfpe-text-swatch:focus-visible{outline:2px solid #f7e088;outline-offset:2px;}
.cfpe-btn--ghost{-webkit-appearance:none;appearance:none;display:inline-flex;align-items:center;min-height:36px;margin:0;padding:0 12px;border:1px solid rgba(231,200,140,0.45);border-radius:999px;background:transparent;color:#f7e088;font:700 15px/1 "Rajdhani","Inter",system-ui,sans-serif;cursor:pointer;}
.cfpe-btn--ghost[hidden]{display:none !important;}
.cfpe-options>.cfpe-fold--guitar>.cfpe-fold__panel{left:0;}

/* ── Stage ───────────────────────────────────────────────── */
#cfpe-editor.cfpe-studio .cfpe-ed-stage{
	grid-column:2;grid-row:3;
	position:relative;display:flex;align-items:stretch;
	min-width:0;min-height:0;padding:12px 14px;box-sizing:border-box;
	background:#09090a;
}
#cfpe-editor.cfpe-studio .cfpe-ed-stage .cfpe-canvas-wrapper{
	flex:1 1 auto;
	width:auto !important;max-width:none !important;
	height:auto !important;min-height:0 !important;max-height:none !important;
	margin:0;border-radius:10px;
	background:transparent !important;
	overflow:hidden !important;
}
#cfpe-editor.cfpe-studio .cfpe-ed-stage .cfpe-canvas-wrapper .canvas-container{border-radius:4px;}

/* Toasts: float over the bottom of the stage instead of pushing it. */
body.cfpe-editor-active #cfpe-editor.cfpe-studio>#cfpe-saved-feedback,
body.cfpe-editor-active #cfpe-editor.cfpe-studio>#cfpe-require-hint{
	grid-column:2;grid-row:3;align-self:end;justify-self:center;
	position:relative;z-index:35;
	max-width:min(560px,calc(100% - 40px));box-sizing:border-box;
	margin:0 0 20px !important;padding:10px 40px 10px 14px;
	border-radius:12px;background:rgba(14,14,16,0.96);
	box-shadow:0 10px 28px rgba(0,0,0,0.5);
	font-size:13px;line-height:1.4;
}
body.cfpe-editor-active #cfpe-editor.cfpe-studio>#cfpe-saved-feedback{border:1px solid rgba(125,219,146,0.5);}
body.cfpe-editor-active #cfpe-editor.cfpe-studio>#cfpe-require-hint{border:1px solid rgba(231,200,140,0.5);color:var(--st-text) !important;}
#cfpe-editor.cfpe-studio .cfpe-toast-close{display:flex;}
#cfpe-editor.cfpe-studio #cfpe-saved-thumb{max-width:36px !important;max-height:36px;object-fit:cover;border-radius:6px;}

/* Artwork resources open as a card over the studio. */
body.cfpe-editor-active #cfpe-editor.cfpe-studio>.cfpe-ed-resources.is-open{
	position:fixed;z-index:70;
	top:calc(var(--cfpe-studio-top) + 16px);left:50%;transform:translateX(-50%);
	width:min(620px,calc(100vw - 32px));max-width:none;max-height:calc(100vh - var(--cfpe-studio-top) - 32px);
	margin:0 !important;overflow:auto;box-sizing:border-box;
	border-radius:16px;box-shadow:0 30px 80px rgba(0,0,0,0.65);
}

/* ── Right panel: layers + adjustments ───────────────────── */
body.cfpe-editor-active #cfpe-editor.cfpe-studio #cfpe-layers{
	grid-column:3;grid-row:2 / 5;
	position:relative;z-index:22;
	width:auto;min-width:0;max-width:none;max-height:none;min-height:0;
	flex:none;align-self:stretch;
	display:flex;flex-direction:column;
	padding:18px 18px 16px 20px;box-sizing:border-box;overflow:hidden auto;
	background:var(--st-panel);
	border:0;border-left:1px solid var(--st-line);border-radius:0;
	font-family:"Orbitron","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--st-text);
}
#cfpe-layers .cfpe-layers__resizer{width:24px;min-width:24px;min-height:24px;left:-12px;}
#cfpe-layers .cfpe-layers__resizer:focus,
#cfpe-layers .cfpe-layers__resizer:focus-visible{outline:2px solid var(--st-gold-hi,#f7e088) !important;outline-offset:-2px !important;}
#cfpe-layers .cfpe-layers__resizer::before{height:44px;background:rgba(255,255,255,0.14);}
#cfpe-layers .cfpe-layers__head{margin:0 0 12px;min-height:30px;}
#cfpe-layers .cfpe-layers__title{font-size:14px;font-weight:600;letter-spacing:0;text-transform:none;color:#f4efe6;}
#cfpe-layers .cfpe-layers__toggle{
	-webkit-appearance:none;appearance:none;display:inline-flex;align-items:center;justify-content:center;
	width:30px;height:30px;margin:0 -6px 0 0;padding:0;border:0;border-radius:8px;
	background:transparent;color:var(--st-dim);cursor:pointer;
	transition:background .12s ease,color .12s ease;
}
#cfpe-layers .cfpe-layers__toggle:hover{background:rgba(255,255,255,0.07);color:#fff;}
#cfpe-layers .cfpe-layers__toggle:focus-visible{outline:none;box-shadow:0 0 0 2px var(--st-gold);}
#cfpe-layers .cfpe-layers__toggle>.cfpe-i{display:block;width:18px;height:18px;transition:transform .2s ease;}
#cfpe-layers .cfpe-layers__toggle-text{display:none !important;}
#cfpe-layers.is-collapsed .cfpe-layers__toggle>.cfpe-i{transform:rotate(180deg);}
#cfpe-layers.is-collapsed{padding:18px 0;align-items:center;overflow:hidden;}
#cfpe-layers.is-collapsed>:not(.cfpe-layers__head):not(.cfpe-layers__resizer){display:none !important;}
#cfpe-layers.is-collapsed .cfpe-layers__head{flex-direction:column;gap:14px;margin:0;}
#cfpe-layers.is-collapsed .cfpe-layers__toggle{margin:0;}
#cfpe-layers.is-collapsed .cfpe-layers__title{writing-mode:vertical-rl;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--st-dim);font-weight:600;}

#cfpe-layers .cfpe-layers__list{flex:1 1 auto;min-height:0;max-height:none;gap:6px;padding:0 2px 0 0;margin:0 0 14px;overflow:auto;}
#cfpe-layers .cfpe-layers__item{
	gap:10px;padding:8px 10px;border-radius:11px;font-size:12.5px;font-weight:500;color:var(--st-text);
	border:1px solid var(--st-line-2);background:var(--st-raise);
	transition:border-color .12s ease,background .12s ease;
}
#cfpe-layers .cfpe-layers__item:hover{border-color:rgba(255,255,255,0.24);}
#cfpe-layers .cfpe-layers__item.is-active{border-color:rgba(231,200,140,0.7);background:rgba(231,200,140,0.09);}
#cfpe-layers .cfpe-layers__item.is-locked{border-style:solid;}
#cfpe-layers .cfpe-layers__item.is-hidden{opacity:.5;}
#cfpe-layers .cfpe-layers__thumb{width:32px;height:32px;border-radius:7px;background:#232326;}
#cfpe-layers .cfpe-layers__name{font-size:12.5px;font-weight:500;}
#cfpe-layers .cfpe-layers__lock,
#cfpe-layers .cfpe-layers__vis{
	-webkit-appearance:none;appearance:none;display:inline-flex;align-items:center;justify-content:center;
	width:28px;height:28px;margin:0;padding:0;border:0;border-radius:7px;
	background:transparent;box-shadow:none;color:var(--st-dim);font-size:0;line-height:1;
	transition:background .12s ease,color .12s ease;
}
#cfpe-layers .cfpe-layers__btn-icon{display:inline-flex;align-items:center;justify-content:center;}
#cfpe-layers .cfpe-layers__btn-icon .cfpe-i{width:17px;height:17px;}
#cfpe-layers .cfpe-layers__btn-text{display:none !important;}
#cfpe-layers .cfpe-layers__lock:hover,
#cfpe-layers .cfpe-layers__vis:hover{background:rgba(255,255,255,0.09);color:#fff;}
#cfpe-layers .cfpe-layers__lock:focus-visible,
#cfpe-layers .cfpe-layers__vis:focus-visible{outline:none;box-shadow:0 0 0 2px var(--st-gold);}
#cfpe-layers .cfpe-layers__item.is-locked .cfpe-layers__lock{background:rgba(231,200,140,0.16);color:var(--st-gold-hi);border:0;}
#cfpe-layers .cfpe-layers__q{padding:3px 8px;font-size:11px;font-weight:700;letter-spacing:.02em;text-transform:none;}
#cfpe-layers .cfpe-layers__empty{padding:22px 10px;font-size:12.5px;color:var(--st-dim);}

#cfpe-layers .cfpe-layers__ops{
	display:grid;grid-template-columns:38px 38px minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:center;
	margin:0;padding:16px 0 0;border-top:1px solid var(--st-line);
}
#cfpe-layers .cfpe-layers__sub{display:block;grid-column:1 / -1;margin:0 0 2px;font-size:13px;font-weight:500;color:var(--st-text);}
#cfpe-layers .cfpe-layers__ops .cfpe-layers__op{
	display:inline-flex;align-items:center;justify-content:center;gap:7px;
	min-height:38px;margin:0;padding:0 10px;border-radius:9px;
	border:1px solid var(--st-line-2);background:var(--st-raise);color:var(--st-text);
	font:600 14.5px/1 "Rajdhani","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:0;
}
#cfpe-layers .cfpe-layers__ops .cfpe-layers__op--icon{padding:0;}
#cfpe-layers .cfpe-layers__ops .cfpe-layers__op:hover:not(:disabled){border-color:rgba(231,200,140,0.5);background:rgba(231,200,140,0.1);color:var(--st-gold-hi);}
#cfpe-layers .cfpe-layers__ops .cfpe-layers__op .cfpe-i{width:17px;height:17px;}
#cfpe-layers .cfpe-layers__ops .cfpe-ed-composer-btn--danger{border-color:rgba(240,132,127,0.5);background:transparent;color:var(--st-danger);}
#cfpe-layers .cfpe-layers__ops .cfpe-ed-composer-btn--danger:hover:not(:disabled){border-color:var(--st-danger);background:rgba(240,132,127,0.1);color:#ffb3af;}
#cfpe-layers .cfpe-layers__opacity{display:grid;grid-template-columns:78px minmax(0,1fr) 40px;align-items:center;gap:8px;margin:14px 0 0;font-size:12.5px;font-weight:500;color:var(--st-text);}
#cfpe-layers .cfpe-layers__opacity #cfpe-layer-opacity-val{text-align:right;font-variant-numeric:tabular-nums;color:var(--st-text);}
#cfpe-layers .cfpe-layers__adjust{gap:12px;margin:16px 0 0;padding-top:16px;border-top:1px solid var(--st-line);}
#cfpe-layers .cfpe-layers__adjust[hidden]{display:none !important;}
#cfpe-layers .cfpe-layers__adjust-row{display:grid;grid-template-columns:78px minmax(0,1fr) 40px;align-items:center;gap:8px;font-size:12.5px;font-weight:500;color:var(--st-text);}
#cfpe-layers .cfpe-layers__adjust-row span:first-child{flex:none;}
#cfpe-layers .cfpe-layers__adjust-row .cfpe-layers__adjust-val{flex:none;text-align:right;color:var(--st-text);}
#cfpe-layers .cfpe-layers__adjust-reset{
	align-self:stretch;display:inline-flex;align-items:center;justify-content:center;gap:8px;
	width:100%;min-height:40px;margin:4px 0 0;padding:0 12px;border-radius:10px;
	border:1px solid var(--st-line-2);background:var(--st-raise);color:var(--st-text);
	font:500 13px/1 "Orbitron","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
}
#cfpe-layers .cfpe-layers__adjust-reset>.cfpe-i{display:inline-block;width:16px;height:16px;}
#cfpe-layers .cfpe-layers__adjust-reset:hover:not(:disabled){border-color:rgba(231,200,140,0.5);background:rgba(231,200,140,0.1);color:var(--st-gold-hi);}

/* Sliders: slim gold track, round knob. --fill is painted by script.
   Hit area is 44px tall; the visible track stays thin. */
#cfpe-layers input[type=range]{
	-webkit-appearance:none;appearance:none;width:100%;min-width:0;height:44px;margin:0;padding:0;background:transparent;cursor:pointer;accent-color:var(--st-gold);
	--fill:50%;
}
#cfpe-layers input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:999px;background:linear-gradient(90deg,var(--st-gold) 0,var(--st-gold) var(--fill),rgba(255,255,255,0.16) var(--fill),rgba(255,255,255,0.16) 100%);}
#cfpe-layers input[type=range]::-moz-range-track{height:4px;border-radius:999px;background:rgba(255,255,255,0.16);}
#cfpe-layers input[type=range]::-moz-range-progress{height:4px;border-radius:999px;background:var(--st-gold);}
#cfpe-layers input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:28px;height:28px;margin-top:-12px;border:0;border-radius:50%;background:linear-gradient(180deg,#f6e3b4,#e7c88c);box-shadow:0 0 0 3px rgba(12,12,14,0.9),0 1px 4px rgba(0,0,0,0.6);}
#cfpe-layers input[type=range]::-moz-range-thumb{width:28px;height:28px;border:0;border-radius:50%;background:linear-gradient(180deg,#f6e3b4,#e7c88c);box-shadow:0 0 0 3px rgba(12,12,14,0.9);}
#cfpe-layers input[type=range]:disabled{opacity:.4;cursor:default;}
#cfpe-layers input[type=range]:focus-visible{outline:none;}
#cfpe-layers input[type=range]:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 3px #0c0c0e,0 0 0 5px var(--st-gold-hi);}

/* The block theme rings every :focus in white; draw focus rings in gold. */
body.cfpe-editor-active #cfpe-editor.cfpe-studio :where(button,summary,a,select,input,[tabindex]):focus-visible{outline:2px solid var(--st-gold-hi,#f7e088) !important;outline-offset:2px !important;}
body.cfpe-editor-active #cfpe-editor.cfpe-studio details.cfpe-fold:not([open])>.cfpe-fold__panel,
body.cfpe-editor-active #cfpe-editor.cfpe-studio details.cfpe-fold:not([open])>#cfpe-text-controls,
body.cfpe-editor-active #cfpe-editor.cfpe-studio details.cfpe-help-menu:not([open])>.cfpe-help-menu__panel{display:none !important;visibility:hidden !important;}

/* ── Bottom: editing tools ───────────────────────────────── */
.cfpe-toolbar__edit{
	grid-column:2;grid-row:4;
	position:relative;z-index:20;
	display:flex;flex-wrap:wrap;align-items:flex-end;gap:26px 8px;
	min-width:0;padding:24px 16px 12px;box-sizing:border-box;
	background:#0e0e10;border-top:1px solid var(--st-line);
}
.cfpe-toolbar__edit>*{flex:0 0 auto;}
.cfpe-toolbar__edit .cfpe-btn-group{
	position:relative;display:inline-flex;align-items:stretch;
	border:1px solid var(--st-line-2);border-radius:9px;background:var(--st-raise);
}
.cfpe-toolbar__edit .cfpe-btn-group[data-caption]::before{
	content:attr(data-caption);position:absolute;left:0;right:0;bottom:calc(100% + 7px);
	text-align:center;white-space:nowrap;font-size:11.5px;font-weight:500;letter-spacing:.01em;color:var(--st-dim);pointer-events:none;
}
.cfpe-toolbar__edit .cfpe-btn-group--rotate,
.cfpe-toolbar__edit .cfpe-btn-group--flip,
.cfpe-toolbar__edit .cfpe-btn-group--align,
.cfpe-toolbar__edit .cfpe-btn-group--size{margin-left:12px;}
.cfpe-toolbar__edit .cfpe-btn-group--rotate::after,
.cfpe-toolbar__edit .cfpe-btn-group--flip::after,
.cfpe-toolbar__edit .cfpe-btn-group--align::after,
.cfpe-toolbar__edit .cfpe-btn-group--size::after{content:"";position:absolute;left:-10px;top:-18px;bottom:0;width:1px;background:var(--st-line);pointer-events:none;}
.cfpe-toolbar__edit .cfpe-tool{
	min-height:36px;min-width:36px;padding:0 10px;
	border:0;border-left:1px solid var(--st-line);border-radius:0;background:transparent;
	color:var(--st-text);font:600 14.5px/1 "Rajdhani","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:0;
	display:inline-flex;align-items:center;justify-content:center;gap:8px;
}
.cfpe-toolbar__edit .cfpe-tool:first-child{border-left:0;}
.cfpe-toolbar__edit .cfpe-tool>.cfpe-i{display:inline-block;width:18px;height:18px;}
.cfpe-toolbar__edit .cfpe-tool:hover:not(:disabled){background:rgba(231,200,140,0.1);color:var(--st-gold-hi);}
.cfpe-toolbar__edit .cfpe-tool:active:not(:disabled){background:rgba(231,200,140,0.2);}
.cfpe-toolbar__edit .cfpe-tool:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--st-gold);}
.cfpe-toolbar__edit .cfpe-tool:disabled{opacity:.35;cursor:default;}
.cfpe-toolbar__edit .cfpe-btn-group>:first-child{border-radius:8px 0 0 8px;}
.cfpe-toolbar__edit .cfpe-btn-group>:last-child{border-radius:0 8px 8px 0;}
.cfpe-toolbar__edit .cfpe-readout{display:inline-flex;align-items:center;justify-content:center;min-width:46px;padding:0 4px;border-left:1px solid var(--st-line);font-size:12.5px;font-weight:500;color:var(--st-text);}
.cfpe-toolbar__edit .cfpe-btn-group>.cfpe-readout:first-child{border-left:0;}
/* The angle slider is a phone control; desktop keeps the drag handles. */
#cfpe-toolbar .cfpe-rotate-fine{display:none;}
.cfpe-toolbar__edit .cfpe-btn-group--rotate>#rotate-btn{border-radius:0 8px 8px 0;}

/* Undo / Redo: icon over label, no frame. */
.cfpe-toolbar__edit .cfpe-btn-group--history{border:0;background:transparent;gap:2px;margin-right:6px;}
.cfpe-toolbar__edit .cfpe-btn-group--history .cfpe-tool{
	flex-direction:column;gap:5px;min-width:54px;min-height:48px;padding:0 6px;border:0;border-radius:9px;
	color:var(--st-dim);font-size:11.5px;
}
.cfpe-toolbar__edit .cfpe-btn-group--history .cfpe-tool:not(:disabled){color:var(--st-text);}
.cfpe-toolbar__edit .cfpe-btn-group--history .cfpe-tool>.cfpe-i{width:19px;height:19px;}

/* Fill / Safe area / Crop: separate framed buttons. */
.cfpe-toolbar__edit .cfpe-btn-group--align,
.cfpe-toolbar__edit .cfpe-btn-group--crop{border:0;background:transparent;gap:8px;}
.cfpe-toolbar__edit .cfpe-btn-group--align .cfpe-tool,
.cfpe-toolbar__edit .cfpe-btn-group--crop .cfpe-tool{
	border:1px solid var(--st-line-2);border-radius:9px;background:var(--st-raise);padding:0 14px;
}
.cfpe-toolbar__edit .cfpe-btn-group--align #cfpe-center-both{padding:0 10px;min-width:38px;}
.cfpe-toolbar__edit .cfpe-btn-group--align .cfpe-tool:hover:not(:disabled),
.cfpe-toolbar__edit .cfpe-btn-group--crop .cfpe-tool:hover:not(:disabled){border-color:rgba(231,200,140,0.5);}
.cfpe-toolbar__edit .cfpe-btn-group--align #cfpe-safe-toggle:not(.is-active){opacity:1;}
.cfpe-toolbar__edit .cfpe-btn-group--align #cfpe-safe-toggle.is-active{color:var(--st-gold-hi);background:rgba(231,200,140,0.13);border-color:rgba(231,200,140,0.55);box-shadow:none;}
.cfpe-toolbar__edit .cfpe-btn-group--align .cfpe-ico{width:18px;height:18px;}
.cfpe-toolbar__edit .cfpe-btn-group--crop #cfpe-crop-apply,
.cfpe-toolbar__edit .cfpe-btn-group--crop #cfpe-crop-cancel{min-width:38px;padding:0 10px;font-size:15px;}
.cfpe-toolbar__edit .cfpe-btn-group--crop #cfpe-crop-apply{color:#9de0a8;border-color:rgba(157,224,168,0.5);}

/* Size: caption (with the current value) over a joined − / + pair. */
.cfpe-toolbar__edit .cfpe-btn-group--size{border:0;background:transparent;align-items:center;gap:0;}
.cfpe-toolbar__edit .cfpe-btn-group--size .cfpe-btn-group__label{display:none;}
.cfpe-toolbar__edit .cfpe-btn-group--size .cfpe-tool{border:1px solid var(--st-line-2);background:var(--st-raise);min-width:38px;font-size:17px;font-weight:400;}
.cfpe-toolbar__edit .cfpe-btn-group--size #zoom-out{border-radius:9px 0 0 9px;}
.cfpe-toolbar__edit .cfpe-btn-group--size #zoom-in{border-left:0;border-radius:0 9px 9px 0;}
.cfpe-toolbar__edit>#cfpe-zoom-readout{display:none;}
/* The size value rides in the caption (script mirrors it to data-readout), so it can never wrap off on its own. */
.cfpe-toolbar__edit .cfpe-btn-group--size[data-caption]::before{content:attr(data-caption) " " attr(data-readout);font-variant-numeric:tabular-nums;}
.cfpe-toolbar__edit .cfpe-btn-group--rotate #rotate-btn{font-variant-numeric:tabular-nums;}

/* ── Bottom: status bar ──────────────────────────────────── */
.cfpe-toolbar__view{
	grid-column:2 / 4;grid-row:5;
	position:relative;z-index:21;
	display:flex;flex-wrap:wrap;align-items:center;gap:8px 0;
	min-width:0;min-height:54px;padding:8px 16px;box-sizing:border-box;
	background:#0d0d0f;border-top:1px solid var(--st-line);
}
.cfpe-toolbar__view>*{flex:0 0 auto;}
.cfpe-toolbar__view .cfpe-quality{
	flex-direction:row;align-items:baseline;gap:9px;min-width:0;min-height:0;
	margin-right:22px;padding:0 24px 0 0;border:0;border-right:1px solid var(--st-line);border-radius:0;background:transparent;
	align-self:stretch;display:inline-flex;align-items:center;
}
@media (min-width:1100px){
	/* Reserve room for the longest quality reading so the zoom controls never slide sideways when it changes. */
	.cfpe-toolbar__view .cfpe-quality{min-width:232px;box-sizing:border-box;justify-content:flex-start;}
}
.cfpe-toolbar__view .cfpe-quality__label{font-size:12.5px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--st-dim);line-height:1;}
.cfpe-toolbar__view .cfpe-quality__value{font-size:12.5px;font-weight:700;line-height:1;}
.cfpe-toolbar__view .cfpe-btn-group{
	position:relative;display:inline-flex;align-items:stretch;
	border:1px solid var(--st-line-2);border-radius:9px;background:var(--st-raise);
}
.cfpe-toolbar__view .cfpe-btn-group .cfpe-btn-group__label{display:none;}
.cfpe-toolbar__view .cfpe-tool{
	min-height:36px;min-width:36px;padding:0 10px;
	border:0;border-left:1px solid var(--st-line);border-radius:0;background:transparent;
	color:var(--st-text);font:600 14.5px/1 "Rajdhani","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:0;
	display:inline-flex;align-items:center;justify-content:center;gap:8px;
}
.cfpe-toolbar__view .cfpe-btn-group>.cfpe-tool:first-child{border-left:0;border-radius:8px 0 0 8px;}
.cfpe-toolbar__view .cfpe-btn-group>.cfpe-tool:last-child{border-radius:0 8px 8px 0;}
.cfpe-toolbar__view .cfpe-btn-group>.cfpe-tool:only-child{border-radius:8px;}
.cfpe-toolbar__view .cfpe-tool:hover:not(:disabled){background:rgba(231,200,140,0.1);color:var(--st-gold-hi);}
.cfpe-toolbar__view .cfpe-tool:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--st-gold);}
.cfpe-toolbar__view #cfpe-stage-zoom-reset{min-width:58px;font-variant-numeric:tabular-nums;}
.cfpe-toolbar__view #cfpe-stage-zoom-actual{min-width:52px;font-variant-numeric:tabular-nums;}
.cfpe-toolbar__view #cfpe-stage-zoom-actual.is-active{color:var(--st-gold-hi);background:rgba(231,200,140,0.14);box-shadow:none;}
.cfpe-toolbar__view .cfpe-tool .cfpe-ico{width:17px;height:17px;}
.cfpe-toolbar__view #cfpe-stage-hand.is-active,
.cfpe-toolbar__view #cfpe-stage-vertical.is-active{color:var(--st-gold-hi);background:rgba(231,200,140,0.14);box-shadow:none;}
.cfpe-toolbar__view .cfpe-btn-group--orient{margin-left:8px;}
.cfpe-toolbar__view #cfpe-stage-vertical{padding:0 14px 0 12px;gap:9px;}
.cfpe-toolbar__view #cfpe-stage-vertical::before{
	content:"";flex:0 0 auto;width:17px;height:17px;background:currentColor;
	-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5v17'/%3E%3Cpath d='m8 7.5 4-4 4 4'/%3E%3Cpath d='m8 16.5 4 4 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5v17'/%3E%3Cpath d='m8 7.5 4-4 4 4'/%3E%3Cpath d='m8 16.5 4 4 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cfpe-toolbar__view #cfpe-stage-vertical::after{content:"";width:.34rem;height:.34rem;margin:-.2rem 0 0 2px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg);opacity:.6;}
.cfpe-toolbar__view>#cfpe-page-reset{
	margin:0 0 0 22px;padding:0 14px 0 6px;min-height:36px;
	border:0;border-left:1px solid var(--st-line);border-radius:0;
	padding-left:22px;background:transparent;color:var(--st-text);
	font:600 14.5px/1 "Rajdhani","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:0;
}
.cfpe-toolbar__view>#cfpe-page-reset:hover{background:rgba(231,200,140,0.08);color:var(--st-gold-hi);border-color:var(--st-line);}
.cfpe-toolbar__view>#cfpe-page-reset>.cfpe-i{display:inline-block;width:17px;height:17px;}
.cfpe-toolbar__view>#cfpe-zoom-note{margin:0 0 0 14px;max-width:260px;}

/* Hover captions come from data-tooltip; keep them above everything. */
.cfpe-toolbar .cfpe-tool[data-tooltip]::after,
.cfpe-toolbar .cfpe-view3d[data-tooltip]::after{z-index:95;}

/* ── Status colouring that belongs to the shell ──────────── */
#cfpe-editor.cfpe-studio .cfpe-quality{border-color:transparent;}

/* ── 3D preview stays inside the stage ───────────────────── */
#cfpe-editor.cfpe-studio .cfpe-3d-view{border-radius:10px;}

/* ── Medium widths: tighter rail + panel ─────────────────── */
@media (max-width:1199px){
	body.cfpe-editor-active{--cfpe-rail-w:168px;}
	body.cfpe-editor-active #cfpe-editor.cfpe-studio{grid-template-columns:var(--cfpe-rail-w) minmax(0,1fr) var(--cfpe-layers-w,272px);}
	body.cfpe-editor-active #cfpe-editor.cfpe-studio:has(#cfpe-layers.is-collapsed){grid-template-columns:var(--cfpe-rail-w) minmax(0,1fr) 56px;}
	.cfpe-toolbar__edit{gap:26px 6px;padding-left:12px;padding-right:12px;}
	.cfpe-toolbar__edit .cfpe-btn-group--rotate,
	.cfpe-toolbar__edit .cfpe-btn-group--flip,
	.cfpe-toolbar__edit .cfpe-btn-group--align,
	.cfpe-toolbar__edit .cfpe-btn-group--size{margin-left:10px;}
	.cfpe-toolbar__edit .cfpe-btn-group--rotate::after,
	.cfpe-toolbar__edit .cfpe-btn-group--flip::after,
	.cfpe-toolbar__edit .cfpe-btn-group--align::after,
	.cfpe-toolbar__edit .cfpe-btn-group--size::after{left:-11px;}
}
/* Laptop widths: Fill / Safe area / Crop become icon-only (tooltips + aria-labels keep their names)
   so the whole editing row stays on one line and the guitar keeps its height. */
@media (max-width:1399px){
	.cfpe-toolbar__edit .cfpe-btn-group--align .cfpe-tool:not(#cfpe-center-both),
	.cfpe-toolbar__edit .cfpe-btn-group--crop .cfpe-tool{font-size:0;gap:0;min-width:38px;padding:0 9px;}
	.cfpe-toolbar__edit .cfpe-btn-group--align .cfpe-tool:not(#cfpe-center-both)>.cfpe-i,
	.cfpe-toolbar__edit .cfpe-btn-group--crop .cfpe-tool>.cfpe-i{margin:0;}
	.cfpe-toolbar__edit .cfpe-btn-group--crop #cfpe-crop-apply,
	.cfpe-toolbar__edit .cfpe-btn-group--crop #cfpe-crop-cancel{font-size:15px;}
}
/* Icon rail on narrow desktop / tablet. */
@media (max-width:1099px){
	.cfpe-toolbar__edit .cfpe-btn-group--history .cfpe-tool{min-width:46px;}
	/* A 248px panel is too tight for one-line layer rows: the ppi badge drops under the name and Arrange wraps in two. */
	#cfpe-layers .cfpe-layers__item{
		display:grid;grid-template-columns:32px minmax(0,1fr) 28px 28px;
		grid-template-areas:"thumb name lock vis" "thumb q lock vis";
		column-gap:8px;row-gap:3px;align-items:center;
	}
	#cfpe-layers .cfpe-layers__item>.cfpe-layers__thumb{grid-area:thumb;}
	#cfpe-layers .cfpe-layers__item>.cfpe-layers__name{grid-area:name;}
	#cfpe-layers .cfpe-layers__item>.cfpe-layers__lock{grid-area:lock;}
	#cfpe-layers .cfpe-layers__item>.cfpe-layers__vis{grid-area:vis;}
	#cfpe-layers .cfpe-layers__item>.cfpe-layers__q{grid-area:q;justify-self:start;}
	#cfpe-layers .cfpe-layers__ops{grid-template-columns:repeat(2,minmax(0,1fr));}
	#cfpe-layers .cfpe-layers__ops .cfpe-layers__op--icon{width:auto;}
	body.cfpe-editor-active{--cfpe-rail-w:64px;}
	body.cfpe-editor-active #cfpe-editor.cfpe-studio{grid-template-columns:var(--cfpe-rail-w) minmax(0,1fr) var(--cfpe-layers-w,248px);}
	body.cfpe-editor-active #cfpe-editor.cfpe-studio:has(#cfpe-layers.is-collapsed){grid-template-columns:var(--cfpe-rail-w) minmax(0,1fr) 56px;}
	.cfpe-rail{padding:16px 8px 12px;}
	.cfpe-rail__label{height:1px;margin:0 0 8px;padding:0;overflow:hidden;font-size:0;background:transparent;}
	.cfpe-rail .cfpe-ed-composer-btn,
	.cfpe-rail .cfpe-fold__summary,
	.cfpe-rail .cfpe-help-menu__toggle{justify-content:center;padding:0;gap:0;min-height:44px;}
	.cfpe-rail__text{display:none !important;}
	.cfpe-rail .cfpe-fold>.cfpe-fold__panel,
	.cfpe-rail .cfpe-help-menu__panel{left:calc(100% + 16px);}
	.cfpe-rail__group--library{margin-top:12px;padding-top:14px;}
	body.cfpe-editor-active #cfpe-nav .cfpe-nav__account-label{display:none;}
	body.cfpe-editor-active #cfpe-nav .cfpe-nav__account{padding:0 10px;}
	.cfpe-docname__input{width:clamp(110px,16vw,200px);}
	.cfpe-toolbar__view .cfpe-quality{margin-right:14px;padding-right:16px;}
	.cfpe-toolbar__view>#cfpe-page-reset{margin-left:14px;padding-left:14px;}
	.cfpe-options .cfpe-bg-select-wrap__label{display:none;}
}
@media (max-width:859px){
	body.cfpe-editor-active #cfpe-nav .cfpe-nav__cart-label{display:none;}
	body.cfpe-editor-active #cfpe-nav .cfpe-nav__cart{padding:0 12px;}
	body.cfpe-editor-active #cfpe-nav .cfpe-nav__studio-actions .cfpe-btn{padding:0 14px;}
	body.cfpe-editor-active #cfpe-nav .cfpe-nav__bar{column-gap:10px;padding:0 12px;}
}

/* Short windows: give the guitar every spare pixel. */
@media (max-height:760px){
	.cfpe-toolbar__edit{padding-top:22px;padding-bottom:8px;}
	.cfpe-toolbar__view{min-height:48px;padding-top:5px;padding-bottom:5px;}
	.cfpe-options{min-height:50px;padding-top:5px;padding-bottom:5px;}
	.cfpe-rail{padding-top:14px;}
	.cfpe-rail .cfpe-ed-composer-btn,
	.cfpe-rail .cfpe-fold__summary,
	.cfpe-rail .cfpe-help-menu__toggle{min-height:36px;}
	.cfpe-rail__group--library{margin-top:10px;padding-top:12px;}
}
@media (max-height:640px){
	.cfpe-rail__label{display:none;}
	.cfpe-rail__group--library{margin-top:6px;padding-top:6px;}
}

@media (prefers-reduced-motion:reduce){
	#cfpe-layers .cfpe-layers__toggle>.cfpe-i{transition:none;}
}

/* ── View-only: "view design" link from an order (?cfpe_restore_url=…) ──
   Just the artwork: no tools, no layers, no saving. Script hides the same
   pieces with inline styles (setRestoreViewOnlyUI), which the shell's
   display:contents / grid rules above would otherwise override. */
body.cfpe-restore-view.cfpe-editor-active #cfpe-editor.cfpe-studio{
	grid-template-columns:minmax(0,1fr) !important;
	grid-template-rows:minmax(0,1fr) !important;
}
body.cfpe-restore-view.cfpe-editor-active #cfpe-editor.cfpe-studio :is(.cfpe-rail,.cfpe-options,#cfpe-layers,.cfpe-toolbar__edit,.cfpe-toolbar__view,.cfpe-studio-bar){display:none !important;}
body.cfpe-restore-view.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-ed-stage{grid-column:1;grid-row:1;}
body.cfpe-restore-view #cfpe-nav :is(.cfpe-studio-title,.cfpe-studio-actions){display:none !important;}

}/* end desktop studio shell */

/* ──────────────────────────────────────────────────────────
 * 3. Mobile Design Studio (<=700px)
 * ────────────────────────────────────────────────────────── */
/* Phone studio (portrait ≤700, or landscape phone: short + coarse pointer). */
@media (max-width:700px), (max-height:500px) and (pointer:coarse){

body.cfpe-editor-active{
	--cfpe-tap:44px;
	--st-bg:#0e0e11;
	--st-panel:#16161b;
	--st-raise:#1e1e24;
	--st-line:#2c2c35;
	--st-line-2:#32323d;
	--st-text:#f5f2eb;
	--st-dim:#a39e93;
	--st-muted:#6e6a63;
	--st-gold:#e5c178;
	--st-gold-hi:#f2d99d;
	--st-gold-fill:#c89d4c;
	--st-danger:#d9534f;
	background:var(--st-bg) !important;
	color:var(--st-text);
	font-family:"Orbitron","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
}

/* ── 3.1 Top Header Bar (#cfpe-nav) ──────────────────────── */
body.cfpe-editor-active #cfpe-nav .cfpe-nav__bar{
	display:flex !important;
	align-items:center !important;
	justify-content:flex-start !important;
	gap:8px !important;
	min-height:48px !important;
	padding:6px 12px !important;
	background:rgba(14,14,17,0.96) !important;
	border-bottom:1px solid rgba(255,255,255,0.08) !important;
}
body.cfpe-editor-active #cfpe-nav .cfpe-nav__brand{
	margin-right:auto !important;
	font-size:1.08rem !important;
	min-height:var(--cfpe-tap);
	align-items:center;
}
body.cfpe-editor-active #cfpe-nav .cfpe-nav__toggle,
body.cfpe-editor-active #cfpe-nav .cfpe-nav__studio-title,
body.cfpe-editor-active #cfpe-nav .cfpe-nav__studio-actions{
	display:none !important;
}
/* Account / Login stays in the phone header (icon + short label). */
body.cfpe-editor-active #cfpe-nav .cfpe-nav__account{
	order:0 !important;
	display:inline-flex !important;
	align-items:center !important;
	gap:6px !important;
	min-height:var(--cfpe-tap) !important;
	padding:0 10px !important;
	border-radius:10px !important;
	border:1px solid var(--st-line-2) !important;
	background:var(--st-raise) !important;
	color:var(--st-text) !important;
	font:600 12px/1 "Orbitron","Inter",system-ui,sans-serif !important;
	text-decoration:none !important;
}
body.cfpe-editor-active #cfpe-nav .cfpe-nav__account-icon{
	display:inline-flex !important;
	width:15px !important;
	height:15px !important;
	color:var(--st-gold) !important;
}
body.cfpe-editor-active #cfpe-nav .cfpe-nav__account-icon .cfpe-i{
	width:15px;height:15px;
}
body.cfpe-editor-active #cfpe-nav .cfpe-nav__account-label{
	display:inline !important;
	max-width:5.5em;
	overflow:hidden;
	text-overflow:ellipsis;
	white-space:nowrap;
}
body.cfpe-editor-active #cfpe-nav .cfpe-nav__cart{
	order:1 !important;
	display:inline-flex !important;
	align-items:center !important;
	gap:6px !important;
	min-height:var(--cfpe-tap) !important;
	padding:0 12px !important;
	border-radius:10px !important;
	border:1px solid var(--st-line-2) !important;
	background:var(--st-raise) !important;
	color:var(--st-text) !important;
	font:600 13px/1 "Orbitron","Inter",system-ui,sans-serif !important;
	text-transform:none !important;
	letter-spacing:0 !important;
}
body.cfpe-editor-active #cfpe-nav .cfpe-nav__cart-icon{
	display:inline-flex !important;
	width:15px !important;
	height:15px !important;
	color:var(--st-gold) !important;
}
/* "Menu" opens the hero Navigator (wired in fabric-mask.js); three lines and
   the word, like the Menu control on every other page. */
body.cfpe-editor-active #cfpe-nav .cfpe-nav__menu-btn{
	order:2 !important;
	-webkit-appearance:none;appearance:none;
	display:inline-flex !important;
	align-items:center;justify-content:center;gap:6px;
	height:var(--cfpe-tap);padding:0 12px;margin:0;
	white-space:nowrap;
	border-radius:10px;
	/* Gold outline and gold word: the same easy-to-find Menu button as on every other page. */
	border:1px solid rgba(229,193,120,0.55);
	background:var(--st-raise);
	color:var(--st-gold-hi);
	cursor:pointer;
}
body.cfpe-editor-active #cfpe-nav .cfpe-nav__menu-btn[aria-expanded="true"]{
	border-color:rgba(229,193,120,0.55);
	background:rgba(229,193,120,0.12);
	color:var(--st-gold-hi);
}

/* ── 3.2 Action Row (.cfpe-studio-bar: My design + Save design) ── */
body.cfpe-editor-active #cfpe-editor.cfpe-studio{
	padding:0 10px calc(var(--cfpe-dock-bar-h) + 12px + env(safe-area-inset-bottom, 0px)) !important;
	gap:6px !important;
	background:var(--st-bg) !important;
}
body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-studio-bar{
	display:flex !important;
	align-items:center;
	justify-content:space-between;
	gap:8px;
	min-height:44px;
	padding:4px 2px 0;
	margin:0;
	flex:0 0 auto;
}
/* Empty on phones (its panels are fixed sheets) but still a flex item, so it
   would add a second 6px gap under the action row. */
body.cfpe-editor-active #cfpe-editor.cfpe-studio > .cfpe-ed-composer-bar{
	margin-bottom:-6px !important;
}
body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-studio-title{
	flex:1 1 auto;
	min-width:0;
	display:flex;
	align-items:center;
}
body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-docname{
	display:inline-flex;
	align-items:center;
	gap:6px;
	max-width:100%;
	padding:4px 8px 4px 4px;
	border-radius:8px;
	cursor:text;
}
body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-docname__input{
	width:auto;
	min-width:90px;
	max-width:170px;
	padding:0;
	margin:0;
	border:0 !important;
	background:transparent !important;
	box-shadow:none !important;
	color:var(--st-text) !important;
	font:600 18px/1.2 "Russo One","Orbitron","Inter",system-ui,sans-serif !important;
	letter-spacing:-0.01em;
}
body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-docname__input::placeholder{
	color:var(--st-text);
	opacity:1;
}
body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-docname__pen{
	display:inline-flex;
	color:var(--st-dim);
}
body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-docname__pen .cfpe-i{
	width:14px;height:14px;
}
body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-studio-title__guest{
	display:none !important;
}
body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-studio-title__mobile-heading{
	display:inline-flex !important;
	align-items:center;
	gap:6px;
	color:var(--st-text);
	font:600 13px/1.2 "Russo One","Orbitron","Inter",system-ui,sans-serif;
	letter-spacing:-0.02em;
	white-space:nowrap;
	padding-left:2px;
}
body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-studio-actions{
	display:inline-flex !important;
	align-items:center;
	gap:6px;
	flex:0 0 auto;
}
body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-studio-actions #cfpe-save-design{
	min-height:34px !important;
	padding:0 14px !important;
	border-radius:9px !important;
	border:1px solid #dfb968 !important;
	background:linear-gradient(180deg,#e9c87b 0%,#c89d4c 100%) !important;
	color:#17120a !important;
	font:700 17px/1 "Rajdhani",system-ui,sans-serif !important;letter-spacing:.06em;
	text-transform:uppercase !important;
	letter-spacing:0 !important;
	box-shadow:0 2px 8px rgba(0,0,0,0.35) !important;
}
body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-studio-actions #cfpe-save-design.is-saved{
	border-color:rgba(125,219,146,0.55) !important;
	background:rgba(125,219,146,0.16) !important;
	color:#b9f0c4 !important;
}
body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-studio-actions #cfpe-add-to-cart{
	min-height:34px !important;
	padding:0 12px !important;
	border-radius:9px !important;
	/* A plain outline like Save design, matching the computer layout (it used
	   to be solid gold); it turns gold once the design is saved, below. */
	border:1px solid rgba(255,255,255,0.22) !important;
	background:transparent !important;
	color:var(--st-text,#ece7df) !important;
	font:700 17px/1 "Rajdhani",system-ui,sans-serif !important;letter-spacing:.06em;
	text-transform:uppercase !important;
	letter-spacing:0 !important;
}
/* Saved: Add to cart is the next step, so it takes the gold outline. */
body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-studio-actions #cfpe-save-design.is-saved ~ .cfpe-addcart-form #cfpe-add-to-cart{
	border-color:var(--st-gold,#e5c178) !important;
	box-shadow:0 0 0 1px var(--st-gold,#e5c178) !important;
}

/* ── 3.3 Stage + Floating Zoom/Fit + Undo/Redo Bar ───────── */
body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-ed-stage{
	display:flex !important;
	flex-direction:column !important;
	flex:1 1 auto !important;
	min-height:0 !important;
	gap:6px !important;
	margin:0 !important;
	padding:0 !important;
}
body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-canvas-wrapper{
	position:relative !important;
	flex:1 1 auto !important;
	min-height:220px !important;
	margin:0 !important;
	border-radius:14px !important;
	border:1px solid rgba(255,255,255,0.08) !important;
	background:radial-gradient(ellipse at 50% 45%,#18181f 0%,#0b0b0e 78%) !important;
	overflow:hidden !important;
}
body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-stage-float{
	position:absolute;
	right:10px;
	bottom:10px;
	z-index:18;
	display:inline-flex !important;
	align-items:center;
	border-radius:9px;
	border:1px solid rgba(255,255,255,0.14);
	background:rgba(20,20,25,0.88);
	backdrop-filter:blur(8px);
	-webkit-backdrop-filter:blur(8px);
	box-shadow:0 4px 14px rgba(0,0,0,0.45);
	overflow:hidden;
}
body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-stage-float__zoom{
	padding:0 9px;
	min-height:var(--cfpe-tap);
	display:inline-flex;
	align-items:center;
	color:var(--st-dim);
	font:600 11.5px/1 "Orbitron","Inter",system-ui,sans-serif;
	font-variant-numeric:tabular-nums;
}
body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-stage-float__fit{
	-webkit-appearance:none;appearance:none;
	min-height:var(--cfpe-tap);
	min-width:var(--cfpe-tap);
	padding:0 12px;
	margin:0;
	border:0;
	border-left:1px solid rgba(255,255,255,0.12);
	background:transparent;
	color:var(--st-text);
	font:600 11.5px/1 "Orbitron","Inter",system-ui,sans-serif;
	cursor:pointer;
}
body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-stage-float__fit:active{
	background:rgba(229,193,120,0.18);
	color:var(--st-gold-hi);
}
/* 100% (the print's actual pixels): lit while the view is at 100%. */
body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-stage-float__actual{font-variant-numeric:tabular-nums;}
body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-stage-float__actual.is-active{
	background:rgba(229,193,120,0.18);
	color:var(--st-gold-hi);
}

/* Dedicated Undo | Redo bar directly below canvas */
body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-phone-history{
	display:grid !important;
	grid-template-columns:1fr 1fr;
	flex:0 0 auto;
	border-radius:11px;
	border:1px solid var(--st-line);
	background:#15151a;
	overflow:hidden;
}
body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-phone-history__btn{
	-webkit-appearance:none;appearance:none;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	gap:7px;
	min-height:var(--cfpe-tap);
	padding:0 12px;
	margin:0;
	border:0;
	background:transparent;
	color:var(--st-text);
	font:600 15px/1 "Rajdhani","Inter",system-ui,sans-serif;
	cursor:pointer;
}
body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-phone-history__btn + .cfpe-phone-history__btn{
	border-left:1px solid var(--st-line);
}
body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-phone-history__btn .cfpe-i{
	width:16px;height:16px;color:var(--st-dim);
}
body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-phone-history__btn:disabled{
	opacity:0.38;
	cursor:default;
}
body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-phone-history__btn:active:not(:disabled){
	background:rgba(229,193,120,0.12);
	color:var(--st-gold-hi);
}

/* ── 3.4 Bottom 4-Tab Navigation Bar (.cfpe-phone-dock) ──── */
body.cfpe-editor-active .cfpe-ctx-style{
	display:none !important;
}
/* Dock height above the safe area; bottom sheets sit on top of it. */
body.cfpe-editor-active{
	--cfpe-dock-bar-h:68px;
}
body.cfpe-editor-active .cfpe-phone-dock{
	position:fixed !important;
	left:0;right:0;bottom:0;
	z-index:10055 !important;
	display:grid !important;
	grid-template-columns:repeat(4,minmax(0,1fr)) !important;
	gap:2px !important;
	padding:4px 8px calc(4px + env(safe-area-inset-bottom, 0px)) !important;
	background:rgba(16,16,20,0.98) !important;
	border-top:1px solid rgba(255,255,255,0.09) !important;
	box-shadow:0 -8px 24px rgba(0,0,0,0.5) !important;
}
body.cfpe-editor-active .cfpe-phone-dock__btn{
	position:relative;
	display:flex !important;
	flex-direction:column !important;
	align-items:center !important;
	justify-content:center !important;
	gap:4px !important;
	min-height:60px !important;
	padding:4px 4px !important;
	border:0 !important;
	border-radius:10px !important;
	background:transparent !important;
	color:var(--st-dim) !important;
	font:600 14px/1.1 "Rajdhani","Inter",system-ui,sans-serif !important;
	letter-spacing:0.01em !important;
	text-transform:none !important;
}
body.cfpe-editor-active .cfpe-phone-dock__icon{
	display:inline-flex !important;
	align-items:center;
	justify-content:center;
	width:24px;height:24px;
}
body.cfpe-editor-active .cfpe-phone-dock__icon .cfpe-i{
	width:23px;height:23px;
}
body.cfpe-editor-active .cfpe-phone-dock__btn.is-active{
	color:var(--st-gold) !important;
	background:transparent !important;
}
body.cfpe-editor-active .cfpe-phone-dock__btn.is-active::after{
	content:"";
	position:absolute;
	bottom:2px;
	left:50%;
	transform:translateX(-50%);
	width:18px;
	height:2.5px;
	border-radius:999px;
	background:var(--st-gold);
}

/* ── 3.5 Shared Bottom Sheet Backdrop & Container Styling ── */
body.cfpe-editor-active.cfpe-sheet-open::after{
	content:"";
	position:fixed;
	inset:0;
	z-index:10035;
	background:rgba(0,0,0,0.55);
	backdrop-filter:blur(2px);
	-webkit-backdrop-filter:blur(2px);
	pointer-events:none;
}
body.cfpe-editor-active #cfpe-toolbar{
	display:none !important;
}
html.cfpe-tools-open body.cfpe-editor-active #cfpe-toolbar,
body.cfpe-editor-active #cfpe-toolbar.is-sheet-open{
	position:fixed !important;
	left:0;right:0;
	bottom:calc(var(--cfpe-dock-bar-h) + env(safe-area-inset-bottom, 0px)) !important;
	z-index:10045 !important;
	display:flex !important;
	flex-direction:column !important;
	align-items:stretch !important;
	width:auto !important;
	max-width:100% !important;
	max-height:min(74vh,560px) !important;
	padding:10px 16px 18px !important;
	margin:0 !important;
	box-sizing:border-box !important;
	border-radius:20px 20px 0 0 !important;
	border:1px solid rgba(229,193,120,0.22) !important;
	border-bottom:0 !important;
	background:var(--st-panel) !important;
	box-shadow:0 -18px 48px rgba(0,0,0,0.72) !important;
	overflow-x:hidden !important;
	overflow-y:auto !important;
}
html.cfpe-tools-open body.cfpe-editor-active #cfpe-toolbar::before,
body.cfpe-editor-active #cfpe-toolbar.is-sheet-open::before{
	content:"";
	display:block;
	width:38px;
	height:4px;
	margin:0 auto 10px;
	border-radius:999px;
	background:rgba(255,255,255,0.22);
	flex:0 0 auto;
}

/* ── 3.6 State 2: Edit Text Bottom Sheet (#cfpe-text-controls) ── */
body.cfpe-editor-active #cfpe-text-fold.cfpe-fold--text[open] > #cfpe-text-controls,
body.cfpe-editor-active #cfpe-text-controls.is-open{
	position:fixed !important;
	left:0 !important;right:0 !important;
	top:auto !important;
	bottom:calc(var(--cfpe-dock-bar-h) + env(safe-area-inset-bottom, 0px)) !important;
	z-index:10046 !important;
	display:flex !important;
	flex-direction:column !important;
	align-items:stretch !important;
	gap:12px !important;
	width:100% !important;
	max-width:none !important;
	max-height:min(76vh,580px) !important;
	padding:10px 16px 18px !important;
	margin:0 !important;
	box-sizing:border-box !important;
	border-radius:20px 20px 0 0 !important;
	border:1px solid rgba(229,193,120,0.22) !important;
	border-bottom:0 !important;
	background:var(--st-panel) !important;
	box-shadow:0 -18px 48px rgba(0,0,0,0.72) !important;
	overflow-x:hidden !important;
	overflow-y:auto !important;
}
body.cfpe-editor-active #cfpe-text-controls::before{
	content:"";
	display:block;
	width:38px;height:4px;
	margin:0 auto 2px;
	border-radius:999px;
	background:rgba(255,255,255,0.22);
	flex:0 0 auto;
}

/* Docked Edit / View sheets: the guitar sits in the strip above the sheet
   (html.cfpe-sheet-docked, set by fabric-mask.js), so the rows above the
   canvas step aside and the sheet stops below the guitar. */
html.cfpe-sheet-docked body.cfpe-editor-active #cfpe-editor.cfpe-studio > .cfpe-studio-bar,
html.cfpe-sheet-docked body.cfpe-editor-active #cfpe-editor.cfpe-studio #cfpe-guitar-strip,
html.cfpe-sheet-docked body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-phone-history{
	display:none !important;
}
html.cfpe-sheet-docked body.cfpe-editor-active #cfpe-toolbar,
html.cfpe-sheet-docked body.cfpe-editor-active #cfpe-text-fold.cfpe-fold--text[open] > #cfpe-text-controls{
	max-height:var(--cfpe-dock-sheet-max, 56vh) !important;
	flex-wrap:nowrap !important;
	overscroll-behavior:contain;
}
html.cfpe-sheet-docked body.cfpe-editor-active #cfpe-toolbar > *,
html.cfpe-sheet-docked body.cfpe-editor-active #cfpe-text-fold.cfpe-fold--text[open] > #cfpe-text-controls > *{
	flex-shrink:0 !important;
}
body.cfpe-editor-active .cfpe-text-sheet__head{
	display:flex !important;
	align-items:center;
	justify-content:space-between;
	gap:10px;
}
body.cfpe-editor-active .cfpe-text-sheet__title-wrap{
	display:inline-flex;
	align-items:center;
	gap:10px;
}
body.cfpe-editor-active .cfpe-text-sheet__badge{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	width:28px;height:28px;
	border-radius:8px;
	border:1px solid rgba(229,193,120,0.35);
	background:rgba(229,193,120,0.12);
	color:var(--st-gold);
	font:700 15px/1 "Fraunces",Georgia,serif;
}
body.cfpe-editor-active .cfpe-text-sheet__title{
	color:var(--st-text);
	font:600 19px/1.2 "Russo One","Orbitron","Inter",system-ui,sans-serif;
}
body.cfpe-editor-active .cfpe-text-sheet__done{
	-webkit-appearance:none;appearance:none;
	min-height:var(--cfpe-tap);
	padding:0 16px;
	border-radius:10px;
	border:1px solid #dfb968;
	background:linear-gradient(180deg,#e9c87b 0%,#c89d4c 100%);
	color:#17120a;
	font:700 15px/1 "Rajdhani","Inter",system-ui,sans-serif;
	cursor:pointer;
}
body.cfpe-editor-active .cfpe-text-sheet__entry{
	position:relative;
	display:flex !important;
	align-items:center;
}
body.cfpe-editor-active .cfpe-text-sheet__input{
	width:100%;
	min-height:42px;
	padding:0 38px 0 14px !important;
	border-radius:11px !important;
	border:1px solid rgba(229,193,120,0.5) !important;
	background:var(--st-raise) !important;
	color:var(--st-text) !important;
	font:500 15px/1.2 "Orbitron","Inter",system-ui,sans-serif !important;
	box-sizing:border-box;
}
body.cfpe-editor-active .cfpe-text-sheet__input:focus{
	outline:none;
	border-color:var(--st-gold) !important;
	box-shadow:0 0 0 2px rgba(229,193,120,0.2) !important;
}
body.cfpe-editor-active .cfpe-text-sheet__entry-icon{
	position:absolute;
	right:12px;
	pointer-events:none;
	color:var(--st-dim);
	display:inline-flex;
}
body.cfpe-editor-active .cfpe-text-sheet__entry-icon .cfpe-i{
	width:15px;height:15px;
}
body.cfpe-editor-active .cfpe-text-sheet__tabs{
	display:grid !important;
	grid-template-columns:repeat(4,minmax(0,1fr));
	gap:4px;
	padding:4px;
	border-radius:11px;
	border:1px solid var(--st-line);
	background:#111115;
}
body.cfpe-editor-active .cfpe-text-sheet__tab{
	-webkit-appearance:none;appearance:none;
	min-height:var(--cfpe-tap);
	padding:0 8px;
	border:0;
	border-radius:8px;
	background:transparent;
	color:var(--st-dim);
	font:600 14.5px/1 "Rajdhani","Inter",system-ui,sans-serif;
	cursor:pointer;
}
body.cfpe-editor-active .cfpe-text-sheet__tab.is-active{
	background:var(--st-raise);
	color:var(--st-gold);
	box-shadow:0 1px 4px rgba(0,0,0,0.4);
}
/* Tab filtering inside #cfpe-text-controls */
body.cfpe-editor-active #cfpe-text-controls[data-text-tab="font"] [data-text-panel]:not([data-text-panel="font"]),
body.cfpe-editor-active #cfpe-text-controls[data-text-tab="color"] [data-text-panel]:not([data-text-panel="color"]),
body.cfpe-editor-active #cfpe-text-controls[data-text-tab="layout"] [data-text-panel]:not([data-text-panel="layout"]),
body.cfpe-editor-active #cfpe-text-controls[data-text-tab="effects"] [data-text-panel]:not([data-text-panel="effects"]),
body.cfpe-editor-active #cfpe-text-controls .cfpe-text-bar__hint{
	display:none !important;
}
body.cfpe-editor-active #cfpe-text-controls [data-text-panel="font"]{
	display:grid !important;
	grid-template-columns:1fr 1fr;
	gap:12px;
	width:100%;
}
body.cfpe-editor-active #cfpe-text-controls [data-text-panel="color"],
body.cfpe-editor-active #cfpe-text-controls [data-text-panel="layout"],
body.cfpe-editor-active #cfpe-text-controls [data-text-panel="effects"]{
	display:flex !important;
	flex-direction:column !important;
	gap:8px !important;
	width:100%;
}
body.cfpe-editor-active #cfpe-text-controls #cfpe-text-done{
	display:none !important;
}
body.cfpe-editor-active .cfpe-text-sheet__title{
	display:inline-flex;
	align-items:center;
	gap:10px;
	color:var(--st-text);
	font:600 19px/1.2 "Russo One","Orbitron","Inter",system-ui,sans-serif;
}
body.cfpe-editor-active #cfpe-text-sheet-done{
	-webkit-appearance:none;appearance:none;
	min-height:var(--cfpe-tap);
	padding:0 16px;
	border-radius:10px;
	border:1px solid #dfb968 !important;
	background:linear-gradient(180deg,#e9c87b 0%,#c89d4c 100%) !important;
	color:#17120a !important;
	font:700 15px/1 "Rajdhani","Inter",system-ui,sans-serif !important;
	text-transform:none !important;
	letter-spacing:0 !important;
	cursor:pointer;
}
body.cfpe-editor-active .cfpe-text-size-inline-label{
	display:none !important;
}
body.cfpe-editor-active .cfpe-text-size-stepper label{
	display:flex !important;
	align-items:center;
	justify-content:center;
	margin:0 !important;
	padding:0 !important;
	border:0 !important;
	background:transparent !important;
	min-height:38px !important;
}
body.cfpe-editor-active #cfpe-text-controls .cfpe-text-sheet__head,
body.cfpe-editor-active #cfpe-text-controls .cfpe-text-sheet__entry,
body.cfpe-editor-active #cfpe-text-controls .cfpe-text-sheet__tabs,
body.cfpe-editor-active #cfpe-text-controls .cfpe-font-picker{
	grid-column:1 / -1;
}
body.cfpe-editor-active #cfpe-text-controls::before{
	grid-column:1 / -1;
}
body.cfpe-editor-active .cfpe-text-field-label{
	display:block !important;
	margin:0 0 6px;
	color:var(--st-dim);
	font:600 12px/1.1 "Orbitron","Inter",system-ui,sans-serif;
}
body.cfpe-editor-active #cfpe-text-controls .cfpe-font-picker{
	position:relative;
	width:100%;
	display:flex !important;
	flex-direction:column;
	gap:8px;
}
body.cfpe-editor-active #cfpe-text-controls .cfpe-font-picker__toggle{
	width:100% !important;
	min-height:42px !important;
	padding:0 14px !important;
	border-radius:11px !important;
	border:1px solid var(--st-line-2) !important;
	background:var(--st-raise) !important;
	color:var(--st-text) !important;
	display:flex !important;
	align-items:center !important;
	justify-content:space-between !important;
}
@media (max-width:700px), (max-height:500px) and (pointer:coarse){
body.cfpe-editor-active #cfpe-text-controls .cfpe-font-picker__panel{
	position:static !important;
	display:block !important;
	width:100% !important;
	max-width:none !important;
	margin:0 !important;
	padding:8px !important;
	border-radius:12px !important;
	border:1px solid var(--st-line) !important;
	background:#121216 !important;
	box-shadow:none !important;
	box-sizing:border-box !important;
}
body.cfpe-editor-active #cfpe-text-controls .cfpe-font-picker__search,
body.cfpe-editor-active #cfpe-text-controls .cfpe-font-picker__cats{
	display:none !important;
}
body.cfpe-editor-active #cfpe-text-controls .cfpe-font-picker__list{
	display:grid !important;
	grid-template-columns:1fr 1fr !important;
	gap:6px !important;
	max-height:116px !important;
	margin:0 !important;
	padding:0 !important;
	overflow-y:auto !important;
}
body.cfpe-editor-active #cfpe-text-controls .cfpe-font-picker__btn{
	width:100% !important;
	min-height:42px !important;
	padding:6px 10px !important;
	border-radius:9px !important;
	border:1px solid var(--st-line-2) !important;
	background:var(--st-raise) !important;
	color:var(--st-text) !important;
}
body.cfpe-editor-active #cfpe-text-controls .cfpe-font-picker__btn.is-selected{
	border-color:var(--st-gold) !important;
	background:rgba(229,193,120,0.14) !important;
}
}
body.cfpe-editor-active #cfpe-text-italic{
	display:inline-flex !important;
}
body.cfpe-editor-active .cfpe-text-size-wrap,
body.cfpe-editor-active .cfpe-text-style-wrap{
	display:flex !important;
	flex-direction:column;
	min-width:0;
}
body.cfpe-editor-active .cfpe-text-size-stepper{
	display:grid !important;
	grid-template-columns:44px minmax(0,1fr) 44px;
	align-items:center;
	min-height:var(--cfpe-tap);
	border-radius:10px;
	border:1px solid var(--st-line-2);
	background:var(--st-raise);
	overflow:hidden;
}
body.cfpe-editor-active .cfpe-text-size-step{
	-webkit-appearance:none;appearance:none;
	display:inline-flex !important;
	align-items:center;
	justify-content:center;
	height:100%;
	min-height:var(--cfpe-tap);
	min-width:44px;
	padding:0;
	border:0;
	background:transparent;
	color:var(--st-text);
	font:600 16px/1 "Orbitron","Inter",system-ui,sans-serif;
	cursor:pointer;
}
body.cfpe-editor-active .cfpe-text-size-stepper #cfpe-text-size{
	width:100% !important;
	min-height:var(--cfpe-tap) !important;
	padding:0 4px !important;
	border:0 !important;
	border-left:1px solid var(--st-line) !important;
	border-right:1px solid var(--st-line) !important;
	border-radius:0 !important;
	background:transparent !important;
	color:var(--st-text) !important;
	text-align:center !important;
	font:600 14px/1 "Orbitron","Inter",system-ui,sans-serif !important;
}
body.cfpe-editor-active .cfpe-text-style-btns{
	display:flex !important;
	align-items:center;
	gap:6px;
	/* Bold, Italic and the three align buttons are wider than half a phone
	   screen: the align buttons take a second line instead of running off the edge. */
	flex-wrap:wrap;
	row-gap:6px;
}
body.cfpe-editor-active .cfpe-text-style-btns > .cfpe-ed-composer-btn{
	min-height:var(--cfpe-tap) !important;
	min-width:var(--cfpe-tap) !important;
	padding:0 10px !important;
	border-radius:10px !important;
	border:1px solid var(--st-line-2) !important;
	background:var(--st-raise) !important;
	color:var(--st-text) !important;
}
body.cfpe-editor-active .cfpe-text-style-btns > .cfpe-ed-composer-btn.is-active{
	border-color:var(--st-gold) !important;
	background:rgba(229,193,120,0.16) !important;
	color:var(--st-gold-hi) !important;
}
body.cfpe-editor-active .cfpe-text-align-group--mobile{
	display:inline-flex !important;
	flex:1 1 auto;
	border-radius:10px;
	border:1px solid var(--st-line-2);
	background:var(--st-raise);
	overflow:hidden;
}
body.cfpe-editor-active .cfpe-text-align-group--mobile .cfpe-ed-composer-btn{
	flex:1 1 0;
	min-height:var(--cfpe-tap) !important;
	min-width:44px !important;
	padding:0 !important;
	border:0 !important;
	border-left:1px solid var(--st-line) !important;
	border-radius:0 !important;
	background:transparent !important;
	color:var(--st-dim) !important;
}
body.cfpe-editor-active .cfpe-text-align-group--mobile .cfpe-ed-composer-btn:first-child{
	border-left:0 !important;
}
body.cfpe-editor-active .cfpe-text-align-group--mobile .cfpe-ed-composer-btn.is-active{
	background:rgba(229,193,120,0.16) !important;
	color:var(--st-gold-hi) !important;
}
body.cfpe-editor-active .cfpe-text-align-group--mobile .cfpe-i{
	width:15px;height:15px;
}
/* Color / Layout / Effects tabs inside #cfpe-text-controls */
body.cfpe-editor-active #cfpe-text-controls .cfpe-text-color-item,
body.cfpe-editor-active #cfpe-text-controls .cfpe-text-slider,
body.cfpe-editor-active #cfpe-text-controls .cfpe-text-Check{
	grid-column:1 / -1;
	display:flex !important;
	align-items:center;
	justify-content:space-between;
	gap:12px;
	padding:10px 12px;
	border-radius:11px;
	border:1px solid var(--st-line);
	background:var(--st-raise);
	color:var(--st-text);
	font-size:13px;
}
body.cfpe-editor-active #cfpe-text-controls .cfpe-text-align-group:not(.cfpe-text-align-group--mobile){
	display:none !important;
}
body.cfpe-editor-active #cfpe-text-controls #cfpe-text-reset{
	grid-column:1 / -1;
	min-height:40px;
	border-radius:10px;
	border:1px solid var(--st-line-2);
	background:var(--st-raise);
	color:var(--st-text);
	font:600 13px/1 "Orbitron","Inter",system-ui,sans-serif;
}

/* ── 3.7 States 3A & 3B: View & Transform Bottom Sheet (#cfpe-toolbar) ── */
body.cfpe-editor-active .cfpe-vt-sheet__head{
	display:flex !important;
	align-items:center;
	justify-content:space-between;
	gap:8px;
	margin-bottom:10px;
}
body.cfpe-editor-active .cfpe-vt-sheet__title{
	color:var(--st-text);
	font:600 19px/1.2 "Russo One","Orbitron","Inter",system-ui,sans-serif;
	margin-right:auto;
}
body.cfpe-editor-active .cfpe-vt-sheet__head-actions{
	display:inline-flex;
	align-items:center;
	gap:6px;
}
body.cfpe-editor-active .cfpe-vt-sheet__icon-btn,
body.cfpe-editor-active .cfpe-vt-sheet__hist{
	-webkit-appearance:none;appearance:none;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	width:var(--cfpe-tap);height:var(--cfpe-tap);
	min-width:var(--cfpe-tap);min-height:var(--cfpe-tap);
	padding:0;
	border-radius:9px;
	border:1px solid var(--st-line-2);
	background:var(--st-raise);
	color:var(--st-text);
	cursor:pointer;
	box-sizing:border-box;
}
body.cfpe-editor-active .cfpe-vt-sheet__icon-btn .cfpe-i{
	width:16px;height:16px;
}
body.cfpe-editor-active .cfpe-vt-sheet__done,
body.cfpe-editor-active #cfpe-vt-sheet-done,
body.cfpe-editor-active .cfpe-sheet-done{
	-webkit-appearance:none;appearance:none;
	min-height:var(--cfpe-tap);
	min-width:var(--cfpe-tap);
	padding:0 16px;
	border-radius:10px;
	border:1px solid #dfb968 !important;
	background:linear-gradient(180deg,#e9c87b 0%,#c89d4c 100%) !important;
	color:#17120a !important;
	font:700 15px/1 "Rajdhani","Inter",system-ui,sans-serif !important;
	text-transform:none !important;
	letter-spacing:0 !important;
	cursor:pointer;
}
body.cfpe-editor-active .cfpe-vt-sheet__tabs{
	display:grid !important;
	grid-template-columns:1fr 1fr;
	gap:4px;
	padding:4px;
	margin-bottom:12px;
	border-radius:11px;
	border:1px solid var(--st-line);
	background:#111115;
}
body.cfpe-editor-active .cfpe-vt-sheet__tab{
	-webkit-appearance:none;appearance:none;
	min-height:var(--cfpe-tap);
	border:0;
	border-radius:8px;
	background:transparent;
	color:var(--st-dim);
	font:600 15px/1 "Rajdhani","Inter",system-ui,sans-serif;
	cursor:pointer;
}
body.cfpe-editor-active .cfpe-vt-sheet__tab.is-active{
	background:var(--st-raise);
	color:var(--st-gold);
	box-shadow:0 1px 4px rgba(0,0,0,0.4);
}
/* Switch between Artwork tab and View tab inside #cfpe-toolbar */
body.cfpe-editor-active #cfpe-toolbar[data-vt-tab="artwork"] .cfpe-toolbar__view{
	display:none !important;
}
body.cfpe-editor-active #cfpe-toolbar[data-vt-tab="view"] .cfpe-toolbar__edit{
	display:none !important;
}
body.cfpe-editor-active #cfpe-toolbar .cfpe-toolbar__edit,
body.cfpe-editor-active #cfpe-toolbar .cfpe-toolbar__view{
	display:grid !important;
	grid-template-columns:1fr 1fr;
	gap:10px 10px !important;
	width:100% !important;
	max-width:100% !important;
	min-width:0 !important;
	padding:0 !important;
	margin:0 !important;
	border:0 !important;
	background:transparent !important;
	box-sizing:border-box !important;
}
body.cfpe-editor-active .cfpe-vt-sheet__caption{
	grid-column:1 / -1;
	display:block !important;
	margin:2px 0 -4px;
	color:var(--st-dim);
	font:600 12px/1.1 "Orbitron","Inter",system-ui,sans-serif;
}
/* View is preview-only; customers kept trying to edit their art from here. */
body.cfpe-editor-active #cfpe-toolbar .cfpe-vt-sheet__caption--view{
	order:-1;
	display:flex !important;
	align-items:flex-start;
	gap:8px;
	margin:0;
	padding:9px 11px;
	border-radius:10px;
	border:1px solid rgba(229,193,120,0.28);
	background:rgba(229,193,120,0.08);
	color:var(--st-text);
	font:600 14.5px/1.35 "Rajdhani","Inter",system-ui,sans-serif;
}
body.cfpe-editor-active .cfpe-vt-sheet__caption--view .cfpe-i{
	width:16px;height:16px;
	margin-top:1px;
	color:var(--st-gold);
}
body.cfpe-editor-active .cfpe-vt-sheet__selection{
	grid-column:1 / -1;
	display:flex !important;
	align-items:center;
	justify-content:space-between;
	gap:10px;
	padding:10px 12px;
	border-radius:11px;
	border:1px solid var(--st-line-2);
	background:var(--st-raise);
	min-width:0;
}
body.cfpe-editor-active .cfpe-vt-selection__row,
body.cfpe-editor-active .cfpe-vt-sheet__sel-main{
	display:flex;
	align-items:center;
	gap:10px;
	width:100%;
	min-width:0;
}
body.cfpe-editor-active .cfpe-vt-selection__thumb{
	width:32px !important;
	height:32px !important;
	max-width:32px !important;
	max-height:32px !important;
	object-fit:cover;
	border-radius:7px;
	background:#111115;
	flex:0 0 32px;
}
body.cfpe-editor-active .cfpe-vt-selection__thumb--text,
body.cfpe-editor-active .cfpe-vt-sheet__sel-badge{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	width:28px;height:28px;
	border-radius:7px;
	background:rgba(229,193,120,0.15);
	color:var(--st-gold);
	font:700 13px/1 "Fraunces",Georgia,serif;
	flex:0 0 28px;
}
body.cfpe-editor-active .cfpe-vt-selection__name,
body.cfpe-editor-active .cfpe-vt-sheet__sel-name{
	color:var(--st-text);
	font:600 13px/1.2 "Orbitron","Inter",system-ui,sans-serif;
	white-space:nowrap;
	overflow:hidden;
	text-overflow:ellipsis;
	flex:1 1 auto;
	min-width:0;
}
body.cfpe-editor-active .cfpe-vt-selection__badge,
body.cfpe-editor-active .cfpe-vt-sheet__sel-meta{
	padding:4px 8px;
	border-radius:999px;
	background:rgba(125,219,146,0.14);
	color:#8fd99f;
	font:600 11.5px/1 "Orbitron","Inter",system-ui,sans-serif;
	flex:0 0 auto;
	white-space:nowrap;
}
body.cfpe-editor-active .cfpe-vt-selection__empty{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:10px;
	width:100%;
	min-width:0;
	color:var(--st-dim);
	font:500 13px/1.25 "Orbitron","Inter",system-ui,sans-serif;
}
body.cfpe-editor-active .cfpe-vt-selection__empty-text{
	flex:1 1 auto;
	min-width:0;
	white-space:normal;
}
body.cfpe-editor-active .cfpe-vt-selection__empty-btn{
	-webkit-appearance:none;appearance:none;
	flex:0 0 auto;
	min-height:32px;
	padding:0 12px;
	border-radius:9px;
	border:1px solid var(--st-line-2);
	background:var(--st-panel);
	color:var(--st-gold);
	font:600 14.5px/1 "Rajdhani","Inter",system-ui,sans-serif;
	cursor:pointer;
}
/* Hide desktop history & safe-toggle inside Artwork tab on mobile */
body.cfpe-editor-active #cfpe-toolbar .cfpe-btn-group--history,
body.cfpe-editor-active #cfpe-toolbar #cfpe-safe-toggle{
	display:none !important;
}
/* Rotate 4-segment bar */
body.cfpe-editor-active #cfpe-toolbar .cfpe-btn-group--rotate{
	grid-column:1 / -1;
	display:grid !important;
	grid-template-columns:repeat(4,minmax(0,1fr));
	border-radius:11px !important;
	border:1px solid var(--st-line-2) !important;
	background:var(--st-raise) !important;
	overflow:hidden;
	margin:0 !important;
}
body.cfpe-editor-active #cfpe-toolbar .cfpe-btn-group--rotate > *{
	min-height:var(--cfpe-tap) !important;
	padding:0 8px !important;
	border:0 !important;
	border-left:1px solid var(--st-line) !important;
	border-radius:0 !important;
	background:transparent !important;
	color:var(--st-text) !important;
	font:600 15px/1 "Rajdhani","Inter",system-ui,sans-serif !important;
	display:inline-flex !important;
	align-items:center;
	justify-content:center;
	gap:4px;
}
body.cfpe-editor-active #cfpe-toolbar .cfpe-btn-group--rotate > *:first-child{
	border-left:0 !important;
}
body.cfpe-editor-active #cfpe-toolbar .cfpe-btn-group--rotate #cfpe-rotate-readout{
	color:var(--st-gold) !important;
	background:rgba(229,193,120,0.12) !important;
	cursor:pointer;
}
/* Angle slider: second row of the rotate bar. The gold tick marks 0°. */
body.cfpe-editor-active #cfpe-toolbar .cfpe-btn-group--rotate > .cfpe-rotate-fine{
	grid-column:1 / -1;
	display:grid !important;
	grid-template-columns:auto minmax(0,1fr);
	align-items:center;
	gap:12px;
	padding:0 14px !important;
	border-left:0 !important;
	border-top:1px solid var(--st-line) !important;
	color:var(--st-text) !important;
	font:600 13px/1 "Inter",system-ui,sans-serif !important;
}
body.cfpe-editor-active #cfpe-rotate-range{
	-webkit-appearance:none;appearance:none;width:100%;min-width:0;height:44px;margin:0;padding:0;background:transparent;cursor:pointer;touch-action:none;
}
body.cfpe-editor-active #cfpe-rotate-range::-webkit-slider-runnable-track{height:4px;border-radius:999px;background:linear-gradient(90deg,rgba(255,255,255,0.18) 0,rgba(255,255,255,0.18) calc(50% - 1px),var(--st-gold) calc(50% - 1px),var(--st-gold) calc(50% + 1px),rgba(255,255,255,0.18) calc(50% + 1px));}
body.cfpe-editor-active #cfpe-rotate-range::-moz-range-track{height:4px;border-radius:999px;background:rgba(255,255,255,0.18);}
body.cfpe-editor-active #cfpe-rotate-range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:28px;height:28px;margin-top:-12px;border:0;border-radius:50%;background:linear-gradient(180deg,#f6e3b4,#e7c88c);box-shadow:0 0 0 3px rgba(12,12,14,0.9),0 1px 4px rgba(0,0,0,0.6);}
body.cfpe-editor-active #cfpe-rotate-range::-moz-range-thumb{width:28px;height:28px;border:0;border-radius:50%;background:linear-gradient(180deg,#f6e3b4,#e7c88c);box-shadow:0 0 0 3px rgba(12,12,14,0.9);}
body.cfpe-editor-active #cfpe-rotate-range:disabled{opacity:.4;cursor:default;}
body.cfpe-editor-active .cfpe-tool__mobile-deg,
body.cfpe-editor-active .cfpe-tool__mobile-text,
body.cfpe-editor-active .cfpe-fill-body__mobile{
	display:inline !important;
}
body.cfpe-editor-active .cfpe-fill-body__desktop{
	display:none !important;
}
/* Flip 2-col & Size stepper side by side */
body.cfpe-editor-active #cfpe-toolbar .cfpe-vt-sheet__caption--flip{
	grid-column:1 / 2;
	grid-row:4;
}
body.cfpe-editor-active #cfpe-toolbar .cfpe-btn-group--flip{
	grid-column:1 / 2;
	grid-row:5;
	display:grid !important;
	grid-template-columns:1fr 1fr;
	border-radius:11px !important;
	border:1px solid var(--st-line-2) !important;
	background:var(--st-raise) !important;
	overflow:hidden;
	margin:0 !important;
}
body.cfpe-editor-active #cfpe-toolbar .cfpe-btn-group--flip .cfpe-tool{
	min-height:var(--cfpe-tap) !important;
	padding:0 6px !important;
	border:0 !important;
	border-left:1px solid var(--st-line) !important;
	border-radius:0 !important;
	background:transparent !important;
	color:var(--st-text) !important;
	font:600 14px/1 "Rajdhani","Inter",system-ui,sans-serif !important;
	display:inline-flex !important;
	align-items:center;
	justify-content:center;
	gap:4px;
}
body.cfpe-editor-active #cfpe-toolbar .cfpe-btn-group--flip .cfpe-tool:first-child{
	border-left:0 !important;
}
body.cfpe-editor-active #cfpe-toolbar .cfpe-btn-group--flip .cfpe-i{
	width:14px;height:14px;
}
body.cfpe-editor-active #cfpe-toolbar .cfpe-vt-sheet__caption--size{
	grid-column:2 / 3;
	grid-row:4;
}
body.cfpe-editor-active #cfpe-toolbar .cfpe-btn-group--size{
	grid-column:2 / 3;
	grid-row:5;
	display:grid !important;
	grid-template-columns:36px minmax(0,1fr) 36px;
	align-items:center;
	border-radius:11px !important;
	border:1px solid var(--st-line-2) !important;
	background:var(--st-raise) !important;
	overflow:hidden;
	margin:0 !important;
}
body.cfpe-editor-active #cfpe-toolbar .cfpe-btn-group--size .cfpe-btn-group__label{
	display:none !important;
}
body.cfpe-editor-active #cfpe-toolbar .cfpe-btn-group--size #zoom-out{
	grid-column:1;grid-row:1;
	min-height:var(--cfpe-tap) !important;
	border:0 !important;
	background:transparent !important;
	color:var(--st-text) !important;
	font-size:17px !important;
}
body.cfpe-editor-active #cfpe-toolbar .cfpe-btn-group--size #zoom-in{
	grid-column:3;grid-row:1;
	min-height:var(--cfpe-tap) !important;
	border:0 !important;
	background:transparent !important;
	color:var(--st-text) !important;
	font-size:17px !important;
}
body.cfpe-editor-active #cfpe-toolbar #cfpe-zoom-readout{
	grid-column:2 / 3;
	grid-row:5;
	justify-self:center;
	align-self:center;
	pointer-events:none;
	z-index:2;
	color:var(--st-text) !important;
	font:600 15px/1 "Rajdhani","Inter",system-ui,sans-serif !important;
}
/* Quick actions: Center | Fill body | Crop */
body.cfpe-editor-active #cfpe-toolbar .cfpe-btn-group--align,
body.cfpe-editor-active #cfpe-toolbar .cfpe-btn-group--crop{
	display:contents !important;
}
body.cfpe-editor-active #cfpe-toolbar #cfpe-center-both,
body.cfpe-editor-active #cfpe-toolbar #cfpe-fill-body,
body.cfpe-editor-active #cfpe-toolbar #cfpe-crop-start{
	min-height:var(--cfpe-tap) !important;
	padding:0 10px !important;
	border-radius:11px !important;
	border:1px solid var(--st-line-2) !important;
	background:var(--st-raise) !important;
	color:var(--st-text) !important;
	font:600 14.5px/1 "Rajdhani","Inter",system-ui,sans-serif !important;
	display:inline-flex !important;
	align-items:center;
	justify-content:center;
	gap:6px;
}
body.cfpe-editor-active #cfpe-toolbar #cfpe-center-both .cfpe-ico,
body.cfpe-editor-active #cfpe-toolbar #cfpe-fill-body .cfpe-i,
body.cfpe-editor-active #cfpe-toolbar #cfpe-crop-start .cfpe-i{
	display:inline-block !important;
	width:15px;height:15px;
}
body.cfpe-editor-active #cfpe-toolbar .cfpe-toolbar__edit{
	grid-template-columns:repeat(6,minmax(0,1fr)) !important;
}
body.cfpe-editor-active #cfpe-toolbar .cfpe-vt-sheet__caption,
body.cfpe-editor-active #cfpe-toolbar .cfpe-vt-sheet__selection,
body.cfpe-editor-active #cfpe-toolbar .cfpe-btn-group--rotate{
	grid-column:1 / -1 !important;
}
body.cfpe-editor-active #cfpe-toolbar .cfpe-vt-sheet__caption--flip,
body.cfpe-editor-active #cfpe-toolbar .cfpe-btn-group--flip{
	grid-column:1 / 4 !important;
}
body.cfpe-editor-active #cfpe-toolbar .cfpe-vt-sheet__caption--size,
body.cfpe-editor-active #cfpe-toolbar .cfpe-btn-group--size,
body.cfpe-editor-active #cfpe-toolbar #cfpe-zoom-readout{
	grid-column:4 / 7 !important;
}
body.cfpe-editor-active #cfpe-toolbar #cfpe-center-both{grid-column:1 / 3 !important;grid-row:7;}
body.cfpe-editor-active #cfpe-toolbar #cfpe-fill-body{grid-column:3 / 5 !important;grid-row:7;}
body.cfpe-editor-active #cfpe-toolbar #cfpe-crop-start{grid-column:5 / 7 !important;grid-row:7;}
body.cfpe-editor-active #cfpe-toolbar #cfpe-crop-apply{grid-column:1 / 4 !important;grid-row:8;}
body.cfpe-editor-active #cfpe-toolbar #cfpe-crop-cancel{grid-column:4 / 7 !important;grid-row:8;}

/* State 3B: View Tab inside #cfpe-toolbar */
body.cfpe-editor-active #cfpe-toolbar .cfpe-toolbar__view .cfpe-quality,
body.cfpe-editor-active #cfpe-toolbar .cfpe-toolbar__view #cfpe-stage-hand,
body.cfpe-editor-active #cfpe-toolbar .cfpe-toolbar__view #cfpe-stage-zoom-actual,
body.cfpe-editor-active #cfpe-toolbar .cfpe-toolbar__view #cfpe-stage-vertical,
body.cfpe-editor-active #cfpe-toolbar .cfpe-toolbar__view #cfpe-zoom-note{
	display:none !important;
}
body.cfpe-editor-active #cfpe-toolbar .cfpe-toolbar__view .cfpe-btn-group--orient{
	display:contents !important;
}
body.cfpe-editor-active #cfpe-toolbar .cfpe-toolbar__view .cfpe-btn-group--zoom{
	grid-column:1 / -1;
	display:grid !important;
	grid-template-columns:48px minmax(0,1fr) 48px;
	border-radius:11px !important;
	border:1px solid var(--st-line-2) !important;
	background:var(--st-raise) !important;
	overflow:hidden;
}
body.cfpe-editor-active #cfpe-toolbar .cfpe-toolbar__view .cfpe-btn-group--zoom .cfpe-btn-group__label{
	display:none !important;
}
body.cfpe-editor-active #cfpe-toolbar .cfpe-toolbar__view .cfpe-btn-group--zoom .cfpe-tool{
	min-height:var(--cfpe-tap) !important;
	border:0 !important;
	border-left:1px solid var(--st-line) !important;
	border-radius:0 !important;
	background:transparent !important;
	color:var(--st-text) !important;
	font:600 16px/1 "Rajdhani","Inter",system-ui,sans-serif !important;
}
body.cfpe-editor-active #cfpe-toolbar .cfpe-toolbar__view .cfpe-btn-group--zoom #cfpe-stage-zoom-out{
	border-left:0 !important;
}
body.cfpe-editor-active .cfpe-vt-sheet__view-pair{
	grid-column:1 / -1;
	display:grid !important;
	grid-template-columns:1fr 1fr;
	gap:10px;
}
body.cfpe-editor-active .cfpe-vt-sheet__view-pair .cfpe-vt-sheet__btn{
	-webkit-appearance:none;appearance:none;
	min-height:var(--cfpe-tap) !important;
	border-radius:11px !important;
	border:1px solid var(--st-line-2) !important;
	background:var(--st-raise) !important;
	color:var(--st-text) !important;
	font:600 15px/1 "Rajdhani","Inter",system-ui,sans-serif !important;
	display:inline-flex !important;
	align-items:center;
	justify-content:center;
	gap:7px;
	cursor:pointer;
}
body.cfpe-editor-active .cfpe-vt-sheet__view-pair .cfpe-vt-sheet__btn .cfpe-i{
	display:inline-block !important;
	width:16px;height:16px;
	color:var(--st-gold);
}
body.cfpe-editor-active .cfpe-vt-sheet__orient-seg{
	grid-column:1 / -1;
	display:grid !important;
	grid-template-columns:1fr 1fr;
	gap:4px;
	padding:4px;
	border-radius:11px;
	border:1px solid var(--st-line);
	background:#111115;
}
body.cfpe-editor-active .cfpe-vt-sheet__orient-btn{
	-webkit-appearance:none;appearance:none;
	min-height:var(--cfpe-tap);
	border:0;
	border-radius:8px;
	background:transparent;
	color:var(--st-dim);
	font:600 15px/1 "Rajdhani","Inter",system-ui,sans-serif;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	gap:6px;
	cursor:pointer;
}
body.cfpe-editor-active .cfpe-vt-sheet__orient-btn.is-active{
	background:var(--st-raise);
	color:var(--st-gold);
}
body.cfpe-editor-active .cfpe-vt-sheet__safe-row{
	grid-column:1 / -1;
	display:flex !important;
	align-items:center;
	justify-content:space-between;
	gap:12px;
	padding:10px 12px;
	border-radius:11px;
	border:1px solid var(--st-line);
	background:var(--st-raise);
}
body.cfpe-editor-active .cfpe-vt-sheet__safe-copy{
	display:flex;
	flex-direction:column;
	gap:2px;
}
body.cfpe-editor-active .cfpe-vt-sheet__safe-title{
	color:var(--st-text);
	font:600 13px/1.2 "Orbitron","Inter",system-ui,sans-serif;
}
body.cfpe-editor-active .cfpe-vt-sheet__safe-sub{
	color:var(--st-dim);
	font:500 11.5px/1.2 "Orbitron","Inter",system-ui,sans-serif;
}
body.cfpe-editor-active .cfpe-vt-sheet__switch{
	-webkit-appearance:none;appearance:none;
	position:relative;
	width:44px;height:26px;
	padding:0;margin:0;
	border-radius:999px;
	border:1px solid var(--st-line-2);
	background:#111115;
	cursor:pointer;
	transition:background .15s ease,border-color .15s ease;
	flex:0 0 auto;
}
body.cfpe-editor-active .cfpe-vt-sheet__switch-knob{
	position:absolute;
	top:3px;left:3px;
	width:18px;height:18px;
	border-radius:50%;
	background:var(--st-dim);
	transition:transform .15s ease,background .15s ease;
}
body.cfpe-editor-active .cfpe-vt-sheet__switch.is-active{
	background:rgba(229,193,120,0.22);
	border-color:var(--st-gold);
}
body.cfpe-editor-active .cfpe-vt-sheet__switch.is-active .cfpe-vt-sheet__switch-knob{
	transform:translateX(18px);
	background:var(--st-gold);
}
body.cfpe-editor-active #cfpe-toolbar .cfpe-toolbar__view #cfpe-page-reset{
	grid-column:1 / -1;
	min-height:var(--cfpe-tap) !important;
	border-radius:11px !important;
	border:1px solid var(--st-line-2) !important;
	background:var(--st-raise) !important;
	color:var(--st-text) !important;
	font:600 15px/1 "Rajdhani","Inter",system-ui,sans-serif !important;
	display:inline-flex !important;
	align-items:center;
	justify-content:center;
	gap:7px;
}
body.cfpe-editor-active #cfpe-toolbar .cfpe-toolbar__view #cfpe-page-reset > .cfpe-i{
	display:inline-block !important;
	width:16px;height:16px;
}

/* ── 3.8 State 4: Layers & Adjustments Bottom Sheet (#cfpe-layers) ── */
body.cfpe-editor-active #cfpe-layers.is-sheet-open{
	position:fixed !important;
	left:0 !important;right:0 !important;
	bottom:calc(var(--cfpe-dock-bar-h) + env(safe-area-inset-bottom, 0px)) !important;
	z-index:10045 !important;
	display:flex !important;
	flex-direction:column !important;
	width:auto !important;
	max-width:100% !important;
	max-height:min(76vh,580px) !important;
	padding:10px 16px 18px !important;
	margin:0 !important;
	box-sizing:border-box !important;
	border-radius:20px 20px 0 0 !important;
	border:1px solid rgba(229,193,120,0.22) !important;
	border-bottom:0 !important;
	background:var(--st-panel) !important;
	box-shadow:0 -18px 48px rgba(0,0,0,0.72) !important;
	overflow-x:hidden !important;
	overflow-y:auto !important;
}
body.cfpe-editor-active #cfpe-layers .cfpe-layers__head{
	display:flex !important;
	align-items:center;
	justify-content:space-between;
	margin-bottom:10px !important;
}
body.cfpe-editor-active #cfpe-layers .cfpe-layers__title{
	font:600 19px/1.2 "Russo One","Orbitron","Inter",system-ui,sans-serif !important;
	color:var(--st-text) !important;
	text-transform:none !important;
	letter-spacing:0 !important;
}
body.cfpe-editor-active #cfpe-layers .cfpe-layers__title::after{
	content:" & adjustments";
}
/* Japanese pages: the title reads レイヤーと調整 ("と調整", written as codes
   so the file stays plain ASCII). */
html:lang(ja) body.cfpe-editor-active #cfpe-layers .cfpe-layers__title::after{
	content:"\3068\8ABF\6574";
}
body.cfpe-editor-active #cfpe-layers .cfpe-layers__toggle{
	display:none !important;
}
body.cfpe-editor-active #cfpe-layers .cfpe-layers__done{
	display:inline-flex !important;
	align-items:center;
	justify-content:center;
	min-height:var(--cfpe-tap) !important;
	padding:0 16px !important;
	border-radius:10px !important;
	border:1px solid #dfb968 !important;
	background:linear-gradient(180deg,#e9c87b 0%,#c89d4c 100%) !important;
	color:#17120a !important;
	font:700 15px/1 "Rajdhani","Inter",system-ui,sans-serif !important;
	text-transform:none !important;
	letter-spacing:0 !important;
}
body.cfpe-editor-active #cfpe-layers input[type=range]{
	accent-color:var(--st-gold) !important;
}
body.cfpe-editor-active #cfpe-layers .cfpe-layers__list{
	max-height:190px !important;
	gap:8px !important;
	margin-bottom:10px !important;
}
body.cfpe-editor-active #cfpe-layers .cfpe-layers__item{
	padding:10px 12px !important;
	border-radius:12px !important;
	border:1px solid var(--st-line-2) !important;
	background:var(--st-raise) !important;
}
body.cfpe-editor-active #cfpe-layers .cfpe-layers__item.is-active{
	border-color:var(--st-gold) !important;
	background:rgba(229,193,120,0.1) !important;
}
body.cfpe-editor-active #cfpe-layers .cfpe-layers__btn-icon{
	display:inline-flex !important;
}
body.cfpe-editor-active #cfpe-layers .cfpe-layers__btn-text{
	display:none !important;
}
body.cfpe-editor-active #cfpe-layers .cfpe-layers__lock,
body.cfpe-editor-active #cfpe-layers .cfpe-layers__vis{
	width:32px !important;
	height:32px !important;
	padding:0 !important;
	border-radius:8px !important;
	border:1px solid var(--st-line-2) !important;
	background:rgba(255,255,255,0.04) !important;
	color:var(--st-dim) !important;
}
body.cfpe-editor-active #cfpe-layers .cfpe-layers__ops{
	display:grid !important;
	grid-template-columns:repeat(4,minmax(0,1fr)) !important;
	gap:6px !important;
	margin:4px 0 12px !important;
}
body.cfpe-editor-active #cfpe-layers .cfpe-layers__sub{
	display:none !important;
}
body.cfpe-editor-active #cfpe-layers .cfpe-layers__op{
	min-height:var(--cfpe-tap) !important;
	padding:0 6px !important;
	border-radius:10px !important;
	border:1px solid var(--st-line-2) !important;
	background:var(--st-raise) !important;
	color:var(--st-text) !important;
	font:600 14px/1 "Rajdhani","Inter",system-ui,sans-serif !important;
	display:inline-flex !important;
	align-items:center;
	justify-content:center;
	gap:4px !important;
}
body.cfpe-editor-active #cfpe-layers .cfpe-layers__op-mobile-label{
	display:inline !important;
}
body.cfpe-editor-active #cfpe-layers .cfpe-layers__op.cfpe-ed-composer-btn--danger{
	border-color:rgba(217,83,79,0.45) !important;
	color:#f0847f !important;
}
body.cfpe-editor-active #cfpe-layers .cfpe-layers__adjust-heading{
	display:block !important;
	margin:4px 0 8px;
	padding-top:10px;
	border-top:1px solid var(--st-line);
	color:var(--st-text);
	font:600 13px/1.2 "Orbitron","Inter",system-ui,sans-serif;
}
body.cfpe-editor-active #cfpe-layers .cfpe-layers__opacity,
body.cfpe-editor-active #cfpe-layers .cfpe-layers__adjust-row{
	display:grid !important;
	grid-template-columns:76px minmax(0,1fr) 44px !important;
	align-items:center !important;
	gap:10px !important;
	margin:6px 0 !important;
	font-size:12.5px !important;
	color:var(--st-dim) !important;
}
body.cfpe-editor-active #cfpe-layers .cfpe-layers__adjust[hidden]{
	display:none !important;
}
body.cfpe-editor-active #cfpe-layers .cfpe-layers__adjust{
	display:flex !important;
	flex-direction:column;
	gap:6px !important;
	margin-top:4px !important;
	padding-top:0 !important;
	border-top:0 !important;
}
body.cfpe-editor-active #cfpe-layers .cfpe-layers__adjust-reset{
	width:100% !important;
	min-height:var(--cfpe-tap) !important;
	margin-top:8px !important;
	border-radius:10px !important;
	border:1px solid var(--st-line-2) !important;
	background:var(--st-raise) !important;
	color:var(--st-text) !important;
	font:600 13px/1 "Orbitron","Inter",system-ui,sans-serif !important;
	display:inline-flex !important;
	align-items:center;
	justify-content:center;
	gap:7px;
}
body.cfpe-editor-active #cfpe-layers .cfpe-layers__adjust-reset > .cfpe-i{
	display:inline-block !important;
	width:15px;height:15px;
}
body.cfpe-editor-active #cfpe-layers .cfpe-layers__empty-wrap{
	display:flex;
	flex-direction:column;
	align-items:center;
	gap:10px;
	padding:18px 12px;
	text-align:center;
}
body.cfpe-editor-active #cfpe-layers .cfpe-layers__empty-cta{
	-webkit-appearance:none;appearance:none;
	min-height:var(--cfpe-tap);
	padding:0 16px;
	border-radius:10px;
	border:1px solid var(--st-gold);
	background:rgba(229,193,120,0.14);
	color:var(--st-gold-hi);
	font:600 13px/1 "Orbitron","Inter",system-ui,sans-serif;
	cursor:pointer;
}

/* ── 3.9 State 6: Add to Your Design Sheet (#cfpe-add-sheet), Background Sheet & Mobile Menu ── */
.cfpe-add-sheet,
.cfpe-bg-sheet,
.cfpe-mobile-menu{
	display:none;
}
body.cfpe-editor-active .cfpe-add-sheet.is-open,
body.cfpe-editor-active .cfpe-bg-sheet.is-open,
body.cfpe-editor-active .cfpe-mobile-menu.is-open{
	position:fixed !important;
	left:0;right:0;
	bottom:calc(var(--cfpe-dock-bar-h) + env(safe-area-inset-bottom, 0px)) !important;
	z-index:10046 !important;
	display:flex !important;
	flex-direction:column !important;
	gap:12px !important;
	width:auto !important;
	max-width:100% !important;
	max-height:min(76vh,560px) !important;
	padding:10px 16px 18px !important;
	box-sizing:border-box !important;
	border-radius:20px 20px 0 0 !important;
	border:1px solid rgba(229,193,120,0.22) !important;
	border-bottom:0 !important;
	background:var(--st-panel) !important;
	box-shadow:0 -18px 48px rgba(0,0,0,0.72) !important;
	overflow-x:hidden !important;
	overflow-y:auto !important;
}
body.cfpe-editor-active .cfpe-add-sheet::before,
body.cfpe-editor-active .cfpe-bg-sheet::before,
body.cfpe-editor-active .cfpe-mobile-menu::before{
	content:"";
	display:block;
	width:38px;height:4px;
	margin:0 auto 2px;
	border-radius:999px;
	background:rgba(255,255,255,0.22);
	flex:0 0 auto;
}
body.cfpe-editor-active .cfpe-add-sheet__head,
body.cfpe-editor-active .cfpe-mobile-menu__head{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:10px;
	width:100%;
	min-width:0;
}
body.cfpe-editor-active .cfpe-add-sheet__title,
body.cfpe-editor-active .cfpe-mobile-menu__title{
	color:var(--st-text);
	font:600 19px/1.2 "Russo One","Orbitron","Inter",system-ui,sans-serif;
	margin-right:auto;
	min-width:0;
}
body.cfpe-editor-active .cfpe-add-sheet__close,
body.cfpe-editor-active .cfpe-add-sheet__back,
body.cfpe-editor-active .cfpe-mobile-menu__close,
body.cfpe-editor-active .cfpe-bg-sheet__back,
body.cfpe-editor-active .cfpe-bg-sheet__close{
	-webkit-appearance:none;appearance:none;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	width:var(--cfpe-tap);height:var(--cfpe-tap);
	padding:0;
	border-radius:9px;
	border:1px solid var(--st-line-2);
	background:var(--st-raise);
	color:var(--st-dim);
	flex:0 0 auto;
	cursor:pointer;
	box-sizing:border-box;
}
body.cfpe-editor-active .cfpe-mobile-menu__close .cfpe-i{
	width:16px;height:16px;
}
body.cfpe-editor-active .cfpe-add-sheet__grid{
	display:grid !important;
	grid-template-columns:1fr 1fr !important;
	gap:10px !important;
}
body.cfpe-editor-active .cfpe-add-sheet__card{
	-webkit-appearance:none;appearance:none;
	display:flex !important;
	flex-direction:column !important;
	align-items:flex-start !important;
	gap:6px !important;
	padding:14px !important;
	border-radius:14px !important;
	border:1px solid var(--st-line-2) !important;
	background:var(--st-raise) !important;
	text-align:left !important;
	cursor:pointer;
}
body.cfpe-editor-active .cfpe-add-sheet__card:active{
	border-color:var(--st-gold) !important;
	background:rgba(229,193,120,0.12) !important;
}
body.cfpe-editor-active .cfpe-add-sheet__card-icon{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	width:36px;height:36px;
	border-radius:10px;
	background:rgba(229,193,120,0.14);
	color:var(--st-gold);
}
body.cfpe-editor-active .cfpe-add-sheet__card-icon .cfpe-i{
	width:20px;height:20px;
}
body.cfpe-editor-active .cfpe-add-sheet__card-title{
	color:var(--st-text);
	font:600 14px/1.2 "Orbitron","Inter",system-ui,sans-serif;
}
body.cfpe-editor-active .cfpe-add-sheet__card-sub{
	color:var(--st-dim);
	font:500 12px/1.25 "Orbitron","Inter",system-ui,sans-serif;
}
body.cfpe-editor-active .cfpe-add-sheet__rows{
	display:flex;
	flex-direction:column;
	gap:8px;
}
body.cfpe-editor-active .cfpe-add-sheet__row{
	-webkit-appearance:none;appearance:none;
	display:flex;
	align-items:center;
	gap:12px;
	width:100%;
	padding:12px 14px;
	border-radius:13px;
	border:1px solid var(--st-line);
	background:var(--st-raise);
	text-align:left;
	color:var(--st-text);
	cursor:pointer;
}
body.cfpe-editor-active .cfpe-add-sheet__row-icon{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	width:32px;height:32px;
	border-radius:8px;
	background:rgba(255,255,255,0.05);
	color:var(--st-gold);
	flex:0 0 auto;
}
body.cfpe-editor-active .cfpe-add-sheet__row-copy{
	display:flex;
	flex-direction:column;
	gap:2px;
	flex:1 1 auto;
	min-width:0;
}
body.cfpe-editor-active .cfpe-add-sheet__row-title{
	color:var(--st-text);
	font:600 13.5px/1.2 "Orbitron","Inter",system-ui,sans-serif;
}
body.cfpe-editor-active .cfpe-add-sheet__row-sub{
	color:var(--st-dim);
	font:500 12px/1.2 "Orbitron","Inter",system-ui,sans-serif;
}
body.cfpe-editor-active .cfpe-add-sheet__row-chev{
	color:var(--st-dim);
	display:inline-flex;
}
/* Background Picker Grid */
body.cfpe-editor-active .cfpe-bg-sheet__grid{
	display:grid;
	grid-template-columns:repeat(3,minmax(0,1fr));
	gap:8px;
}
body.cfpe-editor-active .cfpe-bg-sheet__opt{
	-webkit-appearance:none;appearance:none;
	display:flex;
	flex-direction:column;
	align-items:center;
	gap:6px;
	padding:10px 8px;
	border-radius:12px;
	border:1px solid var(--st-line-2);
	background:var(--st-raise);
	color:var(--st-text);
	cursor:pointer;
}
body.cfpe-editor-active .cfpe-bg-sheet__opt.is-active{
	border-color:var(--st-gold);
	background:rgba(229,193,120,0.14);
}
body.cfpe-editor-active .cfpe-bg-sheet__swatch{
	width:36px;height:36px;
	border-radius:50%;
	box-shadow:inset 0 0 0 1px rgba(255,255,255,0.22),0 2px 5px rgba(0,0,0,0.45);
}
body.cfpe-editor-active .cfpe-bg-sheet__name{
	font:600 11.5px/1.2 "Orbitron","Inter",system-ui,sans-serif;
	text-align:center;
}
/* Mobile Menu Items */
body.cfpe-editor-active .cfpe-mobile-menu__list{
	display:flex;
	flex-direction:column;
	gap:8px;
}
body.cfpe-editor-active .cfpe-mobile-menu__item{
	-webkit-appearance:none;appearance:none;
	display:flex;
	align-items:center;
	gap:12px;
	width:100%;
	min-height:46px;
	padding:0 14px;
	border-radius:12px;
	border:1px solid var(--st-line);
	background:var(--st-raise);
	color:var(--st-text);
	font:600 14px/1.2 "Orbitron","Inter",system-ui,sans-serif;
	text-decoration:none;
	box-sizing:border-box;
	cursor:pointer;
}
body.cfpe-editor-active .cfpe-mobile-menu__item--danger{
	border-color:rgba(217,83,79,0.45);
	color:#f0847f;
}
body.cfpe-editor-active .cfpe-mobile-menu__icon{
	display:inline-flex;
	color:var(--st-gold);
}
body.cfpe-editor-active .cfpe-mobile-menu__item--danger .cfpe-mobile-menu__icon{
	color:#f0847f;
}

/* ── 3.10 State 7: Graphic Library Full-Height Mobile View (#cfpe-library) ── */
body.cfpe-editor-active #cfpe-library.cfpe-library.is-open{
	position:fixed !important;
	top:48px !important;
	left:0 !important;right:0 !important;
	bottom:calc(var(--cfpe-dock-bar-h) + env(safe-area-inset-bottom, 0px)) !important;
	width:auto !important;
	max-width:100% !important;
	height:auto !important;
	max-height:none !important;
	z-index:10048 !important;
	display:flex !important;
	flex-direction:column !important;
	gap:10px !important;
	padding:14px 14px 16px !important;
	margin:0 !important;
	box-sizing:border-box !important;
	border-radius:0 !important;
	border:0 !important;
	background:var(--st-bg) !important;
	box-shadow:none !important;
	overflow:hidden !important;
}
body.cfpe-editor-active #cfpe-library .cfpe-library__head{
	display:flex !important;
	align-items:flex-start !important;
	gap:10px !important;
}
body.cfpe-editor-active #cfpe-library .cfpe-library__back{
	-webkit-appearance:none;appearance:none;
	display:inline-flex !important;
	align-items:center;
	justify-content:center;
	width:var(--cfpe-tap);height:var(--cfpe-tap);
	padding:0;
	border-radius:10px;
	border:1px solid var(--st-line-2);
	background:var(--st-raise);
	color:var(--st-text);
	flex:0 0 auto;
	cursor:pointer;
	box-sizing:border-box;
}
body.cfpe-editor-active #cfpe-library .cfpe-library__head-copy{
	display:flex !important;
	flex-direction:column;
	gap:2px;
	flex:1 1 auto;
	min-width:0;
}
body.cfpe-editor-active #cfpe-library .cfpe-library__title-desktop,
body.cfpe-editor-active #cfpe-library .cfpe-library__full{
	display:none !important;
}
body.cfpe-editor-active #cfpe-library .cfpe-library__title-mobile{
	display:inline !important;
	color:var(--st-text);
	font:600 20px/1.15 "Russo One","Orbitron","Inter",system-ui,sans-serif;
}
body.cfpe-editor-active #cfpe-library .cfpe-library__subtitle{
	display:none !important;
}
body.cfpe-editor-active #cfpe-library .cfpe-library__full-sub{
	display:inline-flex !important;
	align-items:center;
	align-self:flex-start;
	min-height:28px;
	color:var(--st-gold);
	font:600 13px/1.2 "Orbitron","Inter",system-ui,sans-serif;
	text-decoration:underline;
	text-underline-offset:3px;
}
body.cfpe-editor-active #cfpe-library .cfpe-library__close{
	width:var(--cfpe-tap) !important;height:var(--cfpe-tap) !important;
	border-radius:10px !important;
	border:1px solid var(--st-line-2) !important;
	background:var(--st-raise) !important;
	color:var(--st-dim) !important;
	display:inline-flex !important;
	align-items:center;
	justify-content:center;
	padding:0 !important;
	box-sizing:border-box !important;
}
body.cfpe-editor-active #cfpe-library .cfpe-library__search-wrap{
	position:relative;
	display:flex !important;
	align-items:center;
}
body.cfpe-editor-active #cfpe-library .cfpe-library__search-icon{
	position:absolute;
	left:12px;
	display:inline-flex !important;
	color:var(--st-dim);
	pointer-events:none;
}
body.cfpe-editor-active #cfpe-library .cfpe-library__search-icon .cfpe-i{
	width:16px;height:16px;
}
body.cfpe-editor-active #cfpe-library .cfpe-library__search{
	width:100% !important;
	min-height:40px !important;
	padding:0 12px 0 36px !important;
	border-radius:11px !important;
	border:1px solid var(--st-line-2) !important;
	background:var(--st-raise) !important;
	color:var(--st-text) !important;
	font:500 14px/1.2 "Orbitron","Inter",system-ui,sans-serif !important;
}
body.cfpe-editor-active #cfpe-library .cfpe-library__filter-row{
	display:flex !important;
	align-items:center;
	justify-content:space-between;
	gap:8px;
	min-width:0;
	width:100%;
	box-sizing:border-box;
}
body.cfpe-editor-active #cfpe-library .cfpe-library__types{
	display:flex !important;
	align-items:center;
	gap:6px !important;
	flex-wrap:nowrap !important;
	overflow-x:auto;
	flex:1 1 auto;
	min-width:0;
	padding-bottom:2px;
	-webkit-overflow-scrolling:touch;
	scrollbar-width:none;
}
body.cfpe-editor-active #cfpe-library .cfpe-library__types::-webkit-scrollbar{display:none;}
body.cfpe-editor-active #cfpe-library .cfpe-library__type{
	min-height:var(--cfpe-tap) !important;
	padding:0 11px !important;
	border-radius:999px !important;
	border:1px solid var(--st-line-2) !important;
	background:var(--st-raise) !important;
	color:var(--st-dim) !important;
	font:600 12px/1 "Orbitron","Inter",system-ui,sans-serif !important;
	white-space:nowrap;
	flex:0 0 auto;
	box-sizing:border-box;
}
body.cfpe-editor-active #cfpe-library .cfpe-library__type.is-active{
	border-color:var(--st-gold) !important;
	background:rgba(229,193,120,0.16) !important;
	color:var(--st-gold-hi) !important;
}
body.cfpe-editor-active #cfpe-library .cfpe-library__full-inline{
	display:inline-flex !important;
	align-items:center;
	min-height:var(--cfpe-tap);
	padding:0 8px;
	color:var(--st-gold);
	font:600 12px/1 "Orbitron","Inter",system-ui,sans-serif;
	text-decoration:none;
	white-space:nowrap;
	flex:0 0 auto;
	box-sizing:border-box;
}
body.cfpe-editor-active #cfpe-library .cfpe-library__grid{
	display:grid !important;
	grid-template-columns:repeat(2,minmax(0,1fr)) !important;
	gap:10px !important;
	/* The body scrolls; the grid just grows. */
	overflow:visible !important;
	flex:none !important;
	padding:0 !important;
}
body.cfpe-editor-active #cfpe-library .cfpe-library__card{
	position:relative !important;
	display:flex !important;
	flex-direction:column !important;
	padding:6px !important;
	border-radius:12px !important;
	border:1px solid var(--st-line-2) !important;
	background:var(--st-panel) !important;
	gap:6px !important;
}
body.cfpe-editor-active #cfpe-library .cfpe-library__thumb{
	aspect-ratio:4 / 3 !important;
	object-fit:contain !important;
	border-radius:8px !important;
	background:#101014 !important;
}
body.cfpe-editor-active #cfpe-library .cfpe-library__name{
	padding:0 4px 2px !important;
	color:var(--st-text) !important;
	font:600 12.5px/1.3 "Orbitron","Inter",system-ui,sans-serif !important;
	white-space:nowrap !important;
	overflow:hidden !important;
	text-overflow:ellipsis !important;
}
/* The whole card adds the graphic; "+ Add" is a label on the picture. */
body.cfpe-editor-active #cfpe-library .cfpe-library__add{
	position:absolute !important;
	top:12px !important;
	right:12px !important;
	bottom:auto !important;
	display:inline-flex !important;
	align-items:center !important;
	min-height:26px !important;
	padding:0 10px !important;
	box-sizing:border-box !important;
	border-radius:999px !important;
	border:1px solid rgba(229,193,120,0.6) !important;
	background:rgba(14,14,16,0.85) !important;
	color:var(--st-gold-hi) !important;
	font:600 14px/1 "Rajdhani","Inter",system-ui,sans-serif !important;
}
body.cfpe-editor-active #cfpe-library .cfpe-library__card.is-added .cfpe-library__add{
	border-color:rgba(127,208,140,0.7) !important;
	background:rgba(20,40,24,0.9) !important;
	color:#a6e3b0 !important;
}
body.cfpe-editor-active #cfpe-library .cfpe-library__card.is-error .cfpe-library__add{
	border-color:rgba(240,128,112,0.75) !important;
	background:rgba(48,16,14,0.92) !important;
	color:#ffb4a8 !important;
}
body.cfpe-editor-active #cfpe-library .cfpe-library__card[data-busy="1"]{
	cursor:progress;
}
body.cfpe-editor-active #cfpe-library .cfpe-library__more{
	min-height:var(--cfpe-tap) !important;
	border-radius:11px !important;
	font:600 15px/1 "Rajdhani","Inter",system-ui,sans-serif !important;
}
body.cfpe-editor-active #cfpe-library .cfpe-library__catalog-cta{
	min-height:56px;
	justify-content:center;
	margin-bottom:6px;
}

}/* end phone studio shell */

/* Form controls ignore the page font by default and fall back to the system
   sans (Arial-looking on many machines). Give them Inter. :where() keeps the
   rule at zero specificity, so every font a control already sets still wins. */
:where(body.cfpe-editor-active) :where(button, input, select, textarea) {
	font-family: "Rajdhani","Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Top bar links match the Navigator on every other page (Orbitron). */
body.cfpe-editor-active #cfpe-nav .cfpe-nav__account,
body.cfpe-editor-active #cfpe-nav .cfpe-nav__cart,
body.cfpe-editor-active #cfpe-nav .cfpe-nav__toggle,
body.cfpe-editor-active #cfpe-nav .cfpe-nav__menu-btn {
	font-family: "Orbitron", "Rajdhani","Inter", system-ui, sans-serif !important;
}

/* Navigator sits at the far right and matches the other top-bar links in size. */
body.cfpe-editor-active #cfpe-nav .cfpe-nav__toggle {
	font-size: 12px;
	font-weight: 400;
}

/* Mobile (max-width: 600px): keep the original fonts, except About and Cart. */
@media (max-width: 600px) {
  body.cfpe-editor-active #cfpe-nav .cfpe-nav__bar{font-family:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;}
  body.cfpe-editor-active #cfpe-nav .cfpe-nav__account, body.cfpe-editor-active #cfpe-nav .cfpe-nav__toggle, body.cfpe-editor-active #cfpe-nav .cfpe-nav__menu-btn{font:500 13px/1 "Inter",system-ui,-apple-system,"Segoe UI",sans-serif;}
  body.cfpe-editor-active #cfpe-nav .cfpe-nav__cart{font:600 13px/1 "Inter",system-ui,-apple-system,"Segoe UI",sans-serif;}
  .cfpe-docname__field::after{font:500 14px/1.2 "Inter",system-ui,-apple-system,"Segoe UI",sans-serif;}
  .cfpe-docname__input{font:500 14px/1.2 "Inter",system-ui,-apple-system,"Segoe UI",sans-serif;}
  .cfpe-studio-actions .cfpe-btn{font:600 13px/1 "Inter",system-ui,-apple-system,"Segoe UI",sans-serif;}
  body.cfpe-editor-active #cfpe-editor.cfpe-studio{font-family:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;}
  .cfpe-rail .cfpe-ed-composer-btn, .cfpe-rail .cfpe-fold__summary, .cfpe-rail .cfpe-help-menu__toggle{font:500 13px/1.2 "Inter",system-ui,-apple-system,"Segoe UI",sans-serif;}
  .cfpe-options .cfpe-bg-select{font:500 13px/1.2 "Inter",system-ui,-apple-system,"Segoe UI",sans-serif;}
  .cfpe-options .cfpe-fold__summary{font:500 13px/1 "Inter",system-ui,-apple-system,"Segoe UI",sans-serif;}
  .cfpe-options>#cfpe-save-template{font:500 13px/1 "Inter",system-ui,-apple-system,"Segoe UI",sans-serif;}
  .cfpe-btn--ghost{font:700 13px/1 "Inter",system-ui,sans-serif;}
  body.cfpe-editor-active #cfpe-editor.cfpe-studio #cfpe-layers{font-family:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;}
  #cfpe-layers .cfpe-layers__ops .cfpe-layers__op{font:500 12.5px/1 "Inter",system-ui,-apple-system,"Segoe UI",sans-serif;}
  #cfpe-layers .cfpe-layers__adjust-reset{font:500 13px/1 "Inter",system-ui,-apple-system,"Segoe UI",sans-serif;}
  .cfpe-toolbar__edit .cfpe-tool{font:500 12.5px/1 "Inter",system-ui,-apple-system,"Segoe UI",sans-serif;}
  .cfpe-toolbar__view .cfpe-tool{font:500 12.5px/1 "Inter",system-ui,-apple-system,"Segoe UI",sans-serif;}
  .cfpe-toolbar__view>#cfpe-page-reset{font:500 12.5px/1 "Inter",system-ui,-apple-system,"Segoe UI",sans-serif;}
  body.cfpe-editor-active{font-family:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;}
  body.cfpe-editor-active #cfpe-nav .cfpe-nav__account{font:600 12px/1 "Inter",system-ui,sans-serif !important;}
  body.cfpe-editor-active #cfpe-nav .cfpe-nav__cart{font:600 13px/1 "Inter",system-ui,sans-serif !important;}
  body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-docname__input{font:600 18px/1.2 "Fraunces",Georgia,serif !important;}
  body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-studio-title__mobile-heading{font:600 18px/1.2 "Fraunces",Georgia,serif;}
  body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-studio-actions #cfpe-save-design{font:700 13px/1 "Inter",system-ui,sans-serif !important;}
  body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-studio-actions #cfpe-add-to-cart{font:700 12.5px/1 "Inter",system-ui,sans-serif !important;}
  body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-stage-float__zoom{font:600 11.5px/1 "Inter",system-ui,sans-serif;}
  body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-stage-float__fit{font:600 11.5px/1 "Inter",system-ui,sans-serif;}
  body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-phone-history__btn{font:500 13px/1 "Inter",system-ui,sans-serif;}
  body.cfpe-editor-active .cfpe-phone-dock__btn{font:600 12px/1.1 "Inter",system-ui,sans-serif !important;}
  body.cfpe-editor-active .cfpe-text-sheet__title{font:600 19px/1.2 "Fraunces",Georgia,serif;}
  body.cfpe-editor-active .cfpe-text-sheet__done{font:700 13px/1 "Inter",system-ui,sans-serif;}
  body.cfpe-editor-active .cfpe-text-sheet__input{font:500 15px/1.2 "Inter",system-ui,sans-serif !important;}
  body.cfpe-editor-active .cfpe-text-sheet__tab{font:600 12.5px/1 "Inter",system-ui,sans-serif;}
  body.cfpe-editor-active .cfpe-text-sheet__title{font:600 19px/1.2 "Fraunces",Georgia,serif;}
  body.cfpe-editor-active #cfpe-text-sheet-done{font:700 13px/1 "Inter",system-ui,sans-serif !important;}
  body.cfpe-editor-active .cfpe-text-field-label{font:600 12px/1.1 "Inter",system-ui,sans-serif;}
  body.cfpe-editor-active .cfpe-text-size-step{font:600 16px/1 "Inter",system-ui,sans-serif;}
  body.cfpe-editor-active .cfpe-text-size-stepper #cfpe-text-size{font:600 14px/1 "Inter",system-ui,sans-serif !important;}
  body.cfpe-editor-active #cfpe-text-controls #cfpe-text-reset{font:600 13px/1 "Inter",system-ui,sans-serif;}
  body.cfpe-editor-active .cfpe-vt-sheet__title{font:600 19px/1.2 "Fraunces",Georgia,serif;}
  body.cfpe-editor-active .cfpe-vt-sheet__done, body.cfpe-editor-active #cfpe-vt-sheet-done, body.cfpe-editor-active .cfpe-sheet-done{font:700 13px/1 "Inter",system-ui,sans-serif !important;}
  body.cfpe-editor-active .cfpe-vt-sheet__tab{font:600 13px/1 "Inter",system-ui,sans-serif;}
  body.cfpe-editor-active .cfpe-vt-sheet__caption{font:600 12px/1.1 "Inter",system-ui,sans-serif;}
  body.cfpe-editor-active #cfpe-toolbar .cfpe-vt-sheet__caption--view{font:500 12.5px/1.35 "Inter",system-ui,sans-serif;}
  body.cfpe-editor-active .cfpe-vt-selection__name, body.cfpe-editor-active .cfpe-vt-sheet__sel-name{font:600 13px/1.2 "Inter",system-ui,sans-serif;}
  body.cfpe-editor-active .cfpe-vt-selection__badge, body.cfpe-editor-active .cfpe-vt-sheet__sel-meta{font:600 11.5px/1 "Inter",system-ui,sans-serif;}
  body.cfpe-editor-active .cfpe-vt-selection__empty{font:500 13px/1.25 "Inter",system-ui,sans-serif;}
  body.cfpe-editor-active .cfpe-vt-selection__empty-btn{font:600 12.5px/1 "Inter",system-ui,sans-serif;}
  body.cfpe-editor-active #cfpe-toolbar .cfpe-btn-group--rotate > *{font:600 13px/1 "Inter",system-ui,sans-serif !important;}
  body.cfpe-editor-active #cfpe-toolbar .cfpe-btn-group--flip .cfpe-tool{font:600 12px/1 "Inter",system-ui,sans-serif !important;}
  body.cfpe-editor-active #cfpe-toolbar #cfpe-zoom-readout{font:600 13px/1 "Inter",system-ui,sans-serif !important;}
  body.cfpe-editor-active #cfpe-toolbar #cfpe-center-both, body.cfpe-editor-active #cfpe-toolbar #cfpe-fill-body, body.cfpe-editor-active #cfpe-toolbar #cfpe-crop-start{font:600 12.5px/1 "Inter",system-ui,sans-serif !important;}
  body.cfpe-editor-active #cfpe-toolbar .cfpe-toolbar__view .cfpe-btn-group--zoom .cfpe-tool{font:600 14px/1 "Inter",system-ui,sans-serif !important;}
  body.cfpe-editor-active .cfpe-vt-sheet__view-pair .cfpe-vt-sheet__btn{font:600 13px/1 "Inter",system-ui,sans-serif !important;}
  body.cfpe-editor-active .cfpe-vt-sheet__orient-btn{font:600 13px/1 "Inter",system-ui,sans-serif;}
  body.cfpe-editor-active .cfpe-vt-sheet__safe-title{font:600 13px/1.2 "Inter",system-ui,sans-serif;}
  body.cfpe-editor-active .cfpe-vt-sheet__safe-sub{font:500 11.5px/1.2 "Inter",system-ui,sans-serif;}
  body.cfpe-editor-active #cfpe-toolbar .cfpe-toolbar__view #cfpe-page-reset{font:600 13px/1 "Inter",system-ui,sans-serif !important;}
  body.cfpe-editor-active #cfpe-layers .cfpe-layers__title{font:600 19px/1.2 "Fraunces",Georgia,serif !important;}
  body.cfpe-editor-active #cfpe-layers .cfpe-layers__done{font:700 13px/1 "Inter",system-ui,sans-serif !important;}
  body.cfpe-editor-active #cfpe-layers .cfpe-layers__op{font:600 12px/1 "Inter",system-ui,sans-serif !important;}
  body.cfpe-editor-active #cfpe-layers .cfpe-layers__adjust-heading{font:600 13px/1.2 "Inter",system-ui,sans-serif;}
  body.cfpe-editor-active #cfpe-layers .cfpe-layers__adjust-reset{font:600 13px/1 "Inter",system-ui,sans-serif !important;}
  body.cfpe-editor-active #cfpe-layers .cfpe-layers__empty-cta{font:600 13px/1 "Inter",system-ui,sans-serif;}
  body.cfpe-editor-active .cfpe-add-sheet__title, body.cfpe-editor-active .cfpe-mobile-menu__title{font:600 19px/1.2 "Fraunces",Georgia,serif;}
  body.cfpe-editor-active .cfpe-add-sheet__card-title{font:600 14px/1.2 "Inter",system-ui,sans-serif;}
  body.cfpe-editor-active .cfpe-add-sheet__card-sub{font:500 12px/1.25 "Inter",system-ui,sans-serif;}
  body.cfpe-editor-active .cfpe-add-sheet__row-title{font:600 13.5px/1.2 "Inter",system-ui,sans-serif;}
  body.cfpe-editor-active .cfpe-add-sheet__row-sub{font:500 12px/1.2 "Inter",system-ui,sans-serif;}
  body.cfpe-editor-active .cfpe-bg-sheet__name{font:600 11.5px/1.2 "Inter",system-ui,sans-serif;}
  body.cfpe-editor-active .cfpe-mobile-menu__item{font:600 14px/1.2 "Inter",system-ui,sans-serif;}
  body.cfpe-editor-active #cfpe-library .cfpe-library__title-mobile{font:600 20px/1.15 "Fraunces",Georgia,serif;}
  body.cfpe-editor-active #cfpe-library .cfpe-library__full-sub{font:600 13px/1.2 "Inter",system-ui,sans-serif;}
  body.cfpe-editor-active #cfpe-library .cfpe-library__search{font:500 14px/1.2 "Inter",system-ui,sans-serif !important;}
  body.cfpe-editor-active #cfpe-library .cfpe-library__type{font:600 12px/1 "Inter",system-ui,sans-serif !important;}
  body.cfpe-editor-active #cfpe-library .cfpe-library__full-inline{font:600 12px/1 "Inter",system-ui,sans-serif;}
  body.cfpe-editor-active #cfpe-library .cfpe-library__name{font:600 12.5px/1.3 "Inter",system-ui,sans-serif !important;}
  body.cfpe-editor-active #cfpe-library .cfpe-library__add{font:600 12px/1 "Inter",system-ui,sans-serif !important;}
  body.cfpe-editor-active #cfpe-library .cfpe-library__more{font:600 13px/1 "Inter",system-ui,sans-serif !important;}
  :where(body.cfpe-editor-active) :where(button, input, select, textarea){font-family:revert;}
  body.cfpe-editor-active #cfpe-nav .cfpe-nav__account, body.cfpe-editor-active #cfpe-nav .cfpe-nav__cart, body.cfpe-editor-active #cfpe-nav .cfpe-nav__toggle, body.cfpe-editor-active #cfpe-nav .cfpe-nav__menu-btn{font-family:revert !important;}
  /* The Menu button is a <button>, so "revert" would give it the browser's
     Arial; match the Inter of Sign In and Cart beside it. */
  body.cfpe-editor-active #cfpe-nav .cfpe-nav__menu-btn{font-family:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif !important;font-weight:600;}
}

/* Narrow phones: tighter top-bar buttons so Sign In, Cart and Menu fit on
   one row. The Japanese labels are longer, so there Sign In shows its icon
   only (the word stays for screen readers). */
@media (max-width: 420px) {
  body.cfpe-editor-active #cfpe-nav .cfpe-nav__account,
  body.cfpe-editor-active #cfpe-nav .cfpe-nav__cart,
  body.cfpe-editor-active #cfpe-nav .cfpe-nav__menu-btn{padding:0 9px !important;}
  html:lang(ja) body.cfpe-editor-active #cfpe-nav .cfpe-nav__account-label{
    position:absolute !important;width:1px !important;height:1px !important;max-width:none !important;
    overflow:hidden !important;clip:rect(0 0 0 0) !important;clip-path:inset(50%) !important;white-space:nowrap !important;
  }
}

/* ── Studio header: "Design Studio" title, design name, Save as new ──
   The name is asked for in a popup on save (no typing in the header), so
   the title is plain text that can't collide with the buttons. */
body.cfpe-editor-active .cfpe-studio-title{display:flex;align-items:center;gap:10px;min-width:0;}
body.cfpe-editor-active .cfpe-studio-heading{
	flex:0 0 auto;
	color:var(--st-text,#ece7df);
	font:600 15px/1.1 "Orbitron","Inter",system-ui,-apple-system,"Segoe UI",sans-serif !important;
	letter-spacing:.03em;
	white-space:nowrap;
}
body.cfpe-editor-active .cfpe-docname-chip{
	-webkit-appearance:none;appearance:none;
	display:inline-flex;align-items:center;gap:6px;
	min-width:0;max-width:240px;min-height:28px;margin:0;padding:0 8px;
	border:0;border-radius:7px;background:transparent;
	color:var(--st-dim,rgba(236,231,223,.62));
	font:500 13px/1.2 "Inter",system-ui,-apple-system,"Segoe UI",sans-serif !important;
	text-transform:none;letter-spacing:0;cursor:pointer;
}
body.cfpe-editor-active .cfpe-docname-chip[hidden]{display:none !important;}
body.cfpe-editor-active .cfpe-docname-chip:hover{background:rgba(255,255,255,0.06);color:var(--st-text,#ece7df);}
body.cfpe-editor-active .cfpe-docname-chip:focus-visible{outline:none;box-shadow:0 0 0 2px rgba(231,200,140,0.6);}
body.cfpe-editor-active .cfpe-docname-chip__text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
body.cfpe-editor-active .cfpe-docname-chip .cfpe-i{flex:0 0 auto;width:13px;height:13px;}
/* One gold button in the header; Save as new is a quiet outline. */
body.cfpe-editor-active .cfpe-studio-actions #cfpe-save-as-new{
	min-height:34px;padding:0 12px;border-radius:9px;
	border:1px solid rgba(255,255,255,0.16);background:transparent;box-shadow:none;
	color:var(--st-dim,rgba(236,231,223,.62));
	font:600 13px/1 "Inter",system-ui,-apple-system,"Segoe UI",sans-serif !important;
	text-transform:none;letter-spacing:0;
}
/* Only for a design already in My Designs (the desktop-only rule above left it showing on phones). */
body.cfpe-editor-active #cfpe-save-as-new[hidden]{display:none !important;}
body.cfpe-editor-active .cfpe-studio-actions #cfpe-save-as-new:hover{border-color:rgba(255,255,255,0.32);color:var(--st-text,#ece7df);background:rgba(255,255,255,0.04);}
@media (max-width:700px), (max-height:500px) and (pointer:coarse){
	/* Phones: the name sits under the title so the row never runs out of room. */
	body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-studio-title{flex-direction:column;align-items:flex-start;justify-content:center;gap:0;}
	body.cfpe-editor-active .cfpe-studio-heading{font-size:13.5px !important;letter-spacing:.02em;}
	body.cfpe-editor-active .cfpe-docname-chip{max-width:100%;min-height:20px;margin-left:-2px;padding:0 2px;font-size:12px !important;}
	/* No room beside Saved + Add to cart: Save as new is offered when the name is tapped. */
	body.cfpe-editor-active .cfpe-studio-actions #cfpe-save-as-new{display:none !important;}
}

/* Name popup */
.cfpe-name-modal .cfpe-modal{text-align:left;}
.cfpe-name-modal .cfpe-modal-title{font-family:"Orbitron","Inter",system-ui,sans-serif !important;font-weight:600;font-size:1.15rem;letter-spacing:.02em;}
.cfpe-name-modal .cfpe-modal-text{margin-bottom:16px;}
.cfpe-name-modal__label{display:block;margin:0 0 6px;font:600 12px/1.2 "Inter",system-ui,sans-serif;color:rgba(236,231,223,0.62);}
.cfpe-name-modal__input{
	display:block;box-sizing:border-box;width:100%;min-height:46px;margin:0 0 18px;padding:0 14px;
	border:1px solid rgba(255,255,255,0.18);border-radius:10px;background:#0f0f11;color:#f4efe6;
	font:500 16px/1.2 "Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
	-webkit-appearance:none;appearance:none;outline:none;
}
.cfpe-name-modal__input::placeholder{color:rgba(236,231,223,0.38);}
.cfpe-name-modal__input:focus{border-color:rgba(231,200,140,0.7);box-shadow:0 0 0 3px rgba(231,200,140,0.14);}
.cfpe-name-modal .cfpe-modal-actions .cfpe-btn{min-height:44px;border-radius:10px;font:700 14px/1 "Inter",system-ui,sans-serif;text-transform:none;letter-spacing:0;}
.cfpe-name-modal .cfpe-modal-actions .cfpe-btn--save:disabled{opacity:.4;cursor:default;}
.cfpe-name-modal__extra{
	-webkit-appearance:none;appearance:none;display:block;width:100%;margin:14px 0 0;padding:8px 0 0;
	border:0;background:transparent;color:rgba(236,231,223,0.62);
	font:500 13px/1.3 "Inter",system-ui,sans-serif;text-align:center;text-decoration:underline;text-underline-offset:3px;cursor:pointer;
}
.cfpe-name-modal__extra:hover{color:#f4efe6;}

/* ── Phone held sideways ─────────────────────────────────────
   A landscape phone is about 360px tall, so the portrait stack (header, name
   row, guitar-look row, guitar, undo row, tall tab bar) left no room for the
   guitar. Here the name + Save row sits in the middle of the top bar, Undo /
   Redo float on the stage, the tab bar is shorter, and content stays clear of
   the notch. The guitar lies flat (fabric-mask.js, phoneWantsVertical). */
@media (max-height:500px) and (pointer:coarse) and (orientation:landscape){
	body.cfpe-editor-active{
		--cfpe-dock-bar-h:50px;
		--cfpe-side-l:max(10px, env(safe-area-inset-left, 0px));
		--cfpe-side-r:max(10px, env(safe-area-inset-right, 0px));
	}
	body.cfpe-editor-active #cfpe-nav .cfpe-nav__bar{
		min-height:48px !important;
		padding:2px var(--cfpe-side-r) 2px var(--cfpe-side-l) !important;
	}
	body.cfpe-editor-active #cfpe-editor.cfpe-studio{
		padding:0 var(--cfpe-side-r) calc(var(--cfpe-dock-bar-h) + 6px + env(safe-area-inset-bottom, 0px)) var(--cfpe-side-l) !important;
		gap:4px !important;
	}
	body.cfpe-editor-active #cfpe-editor.cfpe-studio > .cfpe-studio-bar{
		position:fixed !important;
		top:0;
		left:calc(var(--cfpe-side-l) + 118px);
		z-index:10030; /* above the top bar (9990), under sheets and their backdrop (10035+) */
		height:48px;
		min-height:0;
		padding:0;
		max-width:calc(100vw - var(--cfpe-side-l) - var(--cfpe-side-r) - 400px);
		min-width:0;
	}
	body.cfpe-editor-active #cfpe-editor.cfpe-studio > .cfpe-ed-composer-bar{
		margin-bottom:0 !important;
	}
	body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-canvas-wrapper{
		min-height:120px !important;
	}
	body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-ed-stage{
		position:relative !important;
	}
	body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-phone-history{
		position:absolute !important;
		left:10px;
		bottom:10px;
		z-index:18;
		background:rgba(20,20,25,0.88);
		box-shadow:0 4px 14px rgba(0,0,0,0.45);
	}
	body.cfpe-editor-active .cfpe-phone-dock{
		padding:3px var(--cfpe-side-r) calc(3px + env(safe-area-inset-bottom, 0px)) var(--cfpe-side-l) !important;
	}
	body.cfpe-editor-active .cfpe-phone-dock__btn{
		flex-direction:row !important;
		gap:8px !important;
		min-height:44px !important;
	}
}

/* ── Phones: hold the guitar area where it will end up while the Studio loads ──
   Until the scripts finish, the guitar area was 220px tall and sat 65px too
   high; then the "Guitar look" strip appeared above it and it grew to fill the
   screen, shoving everything below it down the page (0.43 of layout shift in
   one jump). The finished height is the screen minus 329px of fixed parts
   (header and Studio bar above; strip, undo row and dock around it), measured
   at 390x844 and 430x932. The margin stands in for the strip only while the
   strip is still hidden. */
@media (max-width:700px){
	body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-ed-stage > .cfpe-canvas-wrapper.is-loading{
		/* !important: the phone rules above set this height with !important too. */
		min-height:max(220px, calc(100vh - 329px)) !important;
		min-height:max(220px, calc(100dvh - 329px)) !important;
	}
	body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-ed-stage > .cfpe-guitar-strip[hidden] + .cfpe-canvas-wrapper.is-loading{
		margin-top:65px !important;
	}
}
/* A narrow window on a computer (mouse, no touch) has no undo row under the guitar, so the guitar area ends up 65px taller. */
@media (max-width:700px) and (pointer:fine){
	body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-ed-stage > .cfpe-canvas-wrapper.is-loading{
		min-height:max(220px, calc(100vh - 264px)) !important;
		min-height:max(220px, calc(100dvh - 264px)) !important;
	}
}

/* Until the guitar outline has downloaded and been drawn, the stage says so
   instead of sitting blank (fabric-mask.js removes .is-loading). */
#cfpe-editor .cfpe-canvas-wrapper.is-loading::after{
	content:"Loading your guitar\2026";
	position:absolute;
	inset:0;
	z-index:5;
	display:flex;
	align-items:center;
	justify-content:center;
	color:rgba(236,231,223,0.6);
	font:600 12px/1 "Orbitron","Inter",system-ui,sans-serif;
	letter-spacing:0.12em;
	text-transform:uppercase;
	background:linear-gradient(110deg,transparent 30%,rgba(255,255,255,0.05) 50%,transparent 70%) 0 0/200% 100%;
	animation:cfpe-stage-loading 1.4s linear infinite;
	pointer-events:none;
}
/* Japanese pages: ギターを読み込み中… (written as codes, as above). */
html:lang(ja) #cfpe-editor .cfpe-canvas-wrapper.is-loading::after{
	content:"\30AE\30BF\30FC\3092\8AAD\307F\8FBC\307F\4E2D\2026";
}
@keyframes cfpe-stage-loading{
	from{background-position:100% 0;}
	to{background-position:-100% 0;}
}
@media (prefers-reduced-motion: reduce){
	#cfpe-editor .cfpe-canvas-wrapper.is-loading::after{animation:none;}
}

/* ──────────────────────────────────────────────────────────
 * "Add a graphic" emphasis
 *
 * A visitor with no artwork ready should see at once that they can start
 * designing from the ready-made library. Three places say so: the rail
 * (the one solid-gold button, listed first, labelled even on the narrow
 * icon rail), a starter on the empty stage, and the phone Add sheet.
 * ────────────────────────────────────────────────────────── */

/* 1. Rail: solid gold lead button. */
@media (min-width:701px) and (min-height:501px), (min-width:701px) and (pointer:fine){
	.cfpe-rail .cfpe-ed-composer-btn--library{
		margin-bottom:6px;
		background:linear-gradient(180deg,#f4dcaa,#e7c88c);
		color:var(--st-ink);font-weight:700;
	}
	.cfpe-rail .cfpe-ed-composer-btn--library .cfpe-rail__icon{color:var(--st-ink);}
	.cfpe-rail .cfpe-ed-composer-btn--library:hover:not(:disabled){
		background:linear-gradient(180deg,#f9e6b9,#efd49b);color:var(--st-ink);
	}
}
/* Narrow icon rail: the three Create buttons keep a small label under the icon. */
@media (min-width:701px) and (max-width:1099px){
	.cfpe-rail .cfpe-rail__group--create .cfpe-ed-composer-btn{
		flex-direction:column;gap:3px;min-height:52px;padding:6px 2px;
	}
	.cfpe-rail .cfpe-rail__group--create .cfpe-rail__text{
		display:block !important;flex:0 0 auto;max-width:100%;
		font-size:10px;line-height:1.1;font-weight:700;letter-spacing:.01em;
		text-align:center;white-space:normal;overflow:visible;
	}
	/* Japanese: the full labels ("グラフィックを追加") are nine characters and the
	   narrow rail fits four, so they broke in the middle of a word over three
	   lines. Under the icon the narrow rail shows a two-to-four character name
	   instead; the full label is still the button's tooltip and spoken name. */
	html:lang(ja) .cfpe-rail .cfpe-rail__group--create .cfpe-rail__text{font-size:0;}
	html:lang(ja) .cfpe-rail .cfpe-rail__group--create .cfpe-rail__text::after{
		font-size:10px;line-height:1.1;white-space:nowrap;
	}
	html:lang(ja) .cfpe-rail #cfpe-open-library .cfpe-rail__text::after{content:"素材";}
	html:lang(ja) .cfpe-rail #cfpe-open-ai .cfpe-rail__text::after{content:"AI作成";}
	html:lang(ja) .cfpe-rail .cfpe-ed-composer-btn--upload .cfpe-rail__text::after{content:"画像";}
	html:lang(ja) .cfpe-rail #cfpe-add-text .cfpe-rail__text::after{content:"文字";}
}

/* 2. Starter on the empty stage. */
.cfpe-starter{
	position:absolute;z-index:20;left:50%;bottom:18px;transform:translateX(-50%);
	display:flex;flex-direction:column;align-items:center;gap:10px;
	width:max-content;max-width:calc(100% - 24px);box-sizing:border-box;
	padding:14px 16px;border-radius:16px;
	background:rgba(14,14,16,0.92);border:1px solid rgba(231,200,140,0.45);
	box-shadow:0 14px 36px rgba(0,0,0,.5);
	-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
	font-family:"Rajdhani","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
	animation:cfpe-starter-in .35s ease both;
}
.cfpe-starter[hidden],
.cfpe-starter [hidden],
.cfpe-canvas-wrapper.is-loading .cfpe-starter,
html.cfpe-3d-active .cfpe-starter,
html.cfpe-guide-touring .cfpe-starter,
html.cfpe-typing .cfpe-starter,
body.cfpe-restore-view .cfpe-starter{display:none !important;}
.cfpe-starter__title{
	margin:0;padding:0 30px;color:#ece7df;font-size:16px;font-weight:600;line-height:1.25;text-align:center;
}
/* Close (x) in the card's corner; a 40px tap target around a small glyph. */
.cfpe-starter .cfpe-starter__close{
	-webkit-appearance:none;appearance:none;
	position:absolute;top:2px;right:2px;z-index:1;
	display:flex;align-items:center;justify-content:center;
	width:40px;height:40px;margin:0;padding:0;border:0;border-radius:50%;
	background:transparent;color:#b9b2a6;
	font:400 24px/1 system-ui,-apple-system,"Segoe UI",sans-serif;
	cursor:pointer;touch-action:manipulation;
}
.cfpe-starter .cfpe-starter__close:focus-visible{outline:none;box-shadow:inset 0 0 0 2px #f7e088;}
@media (hover:hover){
	.cfpe-starter .cfpe-starter__close:hover{color:#fff;background:rgba(255,255,255,0.08);}
}
.cfpe-starter__actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;}
.cfpe-starter__btn{
	-webkit-appearance:none;appearance:none;
	display:inline-flex;align-items:center;justify-content:center;gap:8px;
	min-height:44px;padding:0 16px;margin:0;border-radius:999px;
	border:1px solid rgba(231,200,140,0.45);background:transparent;color:#f7e088;
	font:600 15px/1 "Rajdhani","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
	letter-spacing:.01em;text-transform:none;white-space:nowrap;cursor:pointer;
	touch-action:manipulation;
}
.cfpe-starter__btn .cfpe-i{width:19px;height:19px;flex:0 0 auto;}
.cfpe-starter__btn:focus-visible{outline:none;box-shadow:0 0 0 2px #f7e088;}
.cfpe-starter__btn--primary{
	padding:0 20px;border-color:#efd49b;
	background:linear-gradient(180deg,#f4dcaa,#e7c88c);color:#17130a;font-weight:700;font-size:16px;
}
@media (hover:hover){
	.cfpe-starter__btn:hover{background:rgba(231,200,140,0.14);color:#fff;}
	.cfpe-starter__btn--primary:hover{background:linear-gradient(180deg,#f9e6b9,#efd49b);color:#17130a;}
}
/* With AI Graphics on, the card is a compact two-by-two: "Add a graphic" and
   "AI Graphics" side by side, upload and text beneath. */
.cfpe-starter--ai{width:316px;}
.cfpe-starter--ai .cfpe-starter__title{padding:0 26px;font-size:15px;}
.cfpe-starter--ai .cfpe-starter__actions{display:grid;grid-template-columns:1fr 1fr;align-items:stretch;width:100%;}
.cfpe-starter--ai .cfpe-starter__btn{min-width:0;gap:6px;padding:6px 8px;font-size:15px;line-height:1.15;white-space:normal;}
.cfpe-starter__btn--ai{border-color:#efd49b;background:rgba(231,200,140,0.14);font-weight:700;}
.cfpe-starter--ai.cfpe-starter--no-library .cfpe-starter__btn--ai{grid-column:1 / -1;}
@keyframes cfpe-starter-in{from{opacity:0;transform:translateX(-50%) translateY(8px);}to{opacity:1;transform:translateX(-50%);}}
@media (prefers-reduced-motion:reduce){.cfpe-starter{animation:none;}}

/* Phone: full-width card above the zoom control; the gold button takes a row of its own. */
@media (max-width:700px), (max-height:500px) and (pointer:coarse){
	.cfpe-starter{
		left:10px;right:10px;bottom:66px;transform:none;width:auto;max-width:none;
		padding:12px;gap:8px;font-family:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
		animation-name:cfpe-starter-in-phone;
	}
	.cfpe-starter__title{font-size:14px;}
	.cfpe-starter__actions{display:grid;grid-template-columns:1fr 1fr;width:100%;}
	.cfpe-starter__btn{font-family:inherit;font-size:14px;padding:0 10px;}
	.cfpe-starter__btn--primary{grid-column:1 / -1;font-size:15px;}
	.cfpe-starter--ai{width:auto;}
	.cfpe-starter--ai .cfpe-starter__btn{font-size:14px;}
	.cfpe-starter--ai .cfpe-starter__btn--primary{grid-column:auto;}
	.cfpe-starter--no-library .cfpe-starter__actions{grid-template-columns:1fr 1fr;}
	@keyframes cfpe-starter-in-phone{from{opacity:0;transform:translateY(8px);}to{opacity:1;transform:none;}}
}

/* 3. Phone Add sheet: the graphics card leads, full width, in gold. */
body.cfpe-editor-active .cfpe-add-sheet__card--lead{
	grid-column:1 / -1;
	border-color:var(--st-gold) !important;
	background:rgba(229,193,120,0.14) !important;
}
body.cfpe-editor-active .cfpe-add-sheet__card--lead .cfpe-add-sheet__card-title{color:var(--st-gold-hi);}
/* With AI Graphics on, graphics and AI share the top row. */
body.cfpe-editor-active .cfpe-add-sheet__grid--ai .cfpe-add-sheet__card--lead{grid-column:auto;}
body.cfpe-editor-active .cfpe-add-sheet__card--ai{border-color:var(--st-gold) !important;}
body.cfpe-editor-active .cfpe-add-sheet__card--ai .cfpe-add-sheet__card-title{color:var(--st-gold-hi);}

/* ──────────────────────────────────────────────────────────
 * Which guitar this Studio designs for
 *
 * Under the "Design Studio" title: "For the Fender Stratocaster (SSS)", plus
 * a direct "Will it fit my guitar?" link on desktop. Phones show the model
 * line only; the fit check is the first item behind the ? button there.
 * ────────────────────────────────────────────────────────── */
body.cfpe-editor-active .cfpe-studio-id{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;}
body.cfpe-editor-active .cfpe-studio-model{
	display:flex;align-items:center;gap:10px;min-width:0;max-width:100%;
	font:600 12.5px/1.1 "Rajdhani","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
	letter-spacing:.03em;white-space:nowrap;
}
body.cfpe-editor-active .cfpe-studio-model__name{color:var(--st-gold-hi,#f7e088);overflow:hidden;text-overflow:ellipsis;}
body.cfpe-editor-active .cfpe-studio-model__fit{
	flex:0 0 auto;color:var(--st-text,#ece7df);text-decoration:underline;text-underline-offset:3px;
	text-decoration-color:rgba(236,231,223,0.45);
}
body.cfpe-editor-active .cfpe-studio-model__fit:hover,
body.cfpe-editor-active .cfpe-studio-model__fit:focus{color:#fff;text-decoration-color:currentColor;}
body.cfpe-editor-active .cfpe-studio-model__fit:focus-visible{outline:2px solid var(--st-gold,#e7c88c);outline-offset:2px;border-radius:3px;}
/* Small laptops: the header is crowded, so the link steps aside (it stays under Tips & help and the ? button). */
@media (max-width:1099px){
	body.cfpe-editor-active .cfpe-studio-model__fit{display:none;}
}
@media (max-width:700px), (max-height:500px) and (pointer:coarse){
	body.cfpe-editor-active .cfpe-studio-id{align-items:flex-start;gap:2px;}
	body.cfpe-editor-active .cfpe-studio-model{font:600 11px/1.15 "Inter",system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.01em;}
	body.cfpe-editor-active .cfpe-studio-model__fit{display:none;}
}

/* ──────────────────────────────────────────────────────────
 * Studio header: today's price, one gold Add to cart, a quieter Save, and
 * the promo code button (November 2026).
 * Add to cart is always on screen and carries the price; it saves the design
 * first when needed (js/fabric-mask.js). The price comes from the server
 * (includes/studio-price.php): the sale price, or the price with a code.
 * ────────────────────────────────────────────────────────── */
/* Save design steps back: an outline, where it used to be the gold button. */
.cfpe-studio-actions .cfpe-btn--save{
	position:relative;
	border:1px solid rgba(255,255,255,0.2);
	background-color:transparent;background-image:none;
	color:var(--st-text,#ece7df);
	box-shadow:none;
}
.cfpe-studio-actions .cfpe-btn--save:hover:not(:disabled){
	background-color:rgba(255,255,255,0.07) !important;
	background-image:none !important;
	border-color:rgba(255,255,255,0.36) !important;
	color:#fff !important;
}
/* While a save runs, the Save icon pulses (on smaller screens the button has no word to change). */
.cfpe-studio-actions .cfpe-btn--save.is-saving .cfpe-i--save{animation:cfpe-save-pulse .7s ease-in-out infinite alternate;}
@keyframes cfpe-save-pulse{from{opacity:1;}to{opacity:.3;}}
@media (prefers-reduced-motion:reduce){
	.cfpe-studio-actions .cfpe-btn--save.is-saving .cfpe-i--save{animation:none;opacity:.5;}
}
/* Add to cart keeps a low profile until there is something to buy (owner,
   November 2026). It used to be a solid gold button with the price on it, so
   the first thing a new visitor saw was "spend $185" before designing anything.
   - Empty design: a plain outline like Save design, and no price.
   - The design has artwork (.has-art, set in js/fabric-mask.js): the price
     shows, still plain.
   - The design is saved: a gold outline and a gold price; adding it to the
     cart is the next step now. */
.cfpe-studio-actions .cfpe-btn--cart{
	gap:0;
	border:1px solid rgba(255,255,255,0.2);
	background-color:transparent;background-image:none;
	color:var(--st-text,#ece7df);
	box-shadow:none;
}
.cfpe-studio-actions .cfpe-btn--cart:hover:not(:disabled){
	background-color:rgba(255,255,255,0.07) !important;
	background-image:none !important;
	border-color:rgba(255,255,255,0.36) !important;
	color:#fff !important;
}
/* The price sits inside Add to cart, after a hairline. */
.cfpe-btn__price{
	display:inline-flex;align-items:baseline;gap:5px;
	margin-left:10px;padding-left:10px;border-left:1px solid rgba(255,255,255,0.22);
	font-variant-numeric:tabular-nums;
}
.cfpe-studio-actions:not(.has-art) .cfpe-btn__price{display:none;}
.cfpe-btn__was{font-weight:500;opacity:.62;text-decoration:line-through;}
.cfpe-btn__now{font-weight:600;}
/* Saved: the gold outline (the extra ring keeps the button the same size). */
.cfpe-studio-actions .cfpe-btn--save.is-saved ~ .cfpe-addcart-form .cfpe-btn--cart{
	border-color:var(--st-gold,#e7c88c);
	box-shadow:0 0 0 1px var(--st-gold,#e7c88c);
}
.cfpe-studio-actions .cfpe-btn--save.is-saved ~ .cfpe-addcart-form .cfpe-btn--cart:hover:not(:disabled){
	background-color:rgba(231,200,140,0.14) !important;
	border-color:var(--st-gold-hi,#f7e088) !important;
}
.cfpe-studio-actions .cfpe-btn--save.is-saved ~ .cfpe-addcart-form .cfpe-btn--cart:focus-visible{
	box-shadow:0 0 0 2px #0f0f11,0 0 0 4px var(--st-gold-hi,#f7e088);
}
.cfpe-studio-actions .cfpe-btn--save.is-saved ~ .cfpe-addcart-form .cfpe-btn__price{border-left-color:rgba(231,200,140,0.45);}
.cfpe-studio-actions .cfpe-btn--save.is-saved ~ .cfpe-addcart-form .cfpe-btn__now{font-weight:700;color:var(--st-gold-hi,#f7e088);}
/* "Promo code?": a quiet text button; gold once a code is applied (it then shows the code). */
.cfpe-promo-btn{
	-webkit-appearance:none;appearance:none;
	position:relative;display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;
	min-height:38px;margin:0;padding:0 10px;
	border:1px solid transparent;border-radius:9px;background:transparent;box-shadow:none;
	color:var(--st-dim,rgba(236,231,223,.62));
	font:600 13px/1 "Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
	letter-spacing:0;text-transform:none;white-space:nowrap;cursor:pointer;
}
.cfpe-promo-btn .cfpe-i{width:16px;height:16px;flex:0 0 auto;}
.cfpe-promo-btn:hover{color:var(--st-text,#ece7df);background:rgba(255,255,255,0.06);}
.cfpe-promo-btn:focus-visible{outline:none;box-shadow:0 0 0 2px rgba(231,200,140,0.6);}
.cfpe-promo-btn.is-applied{
	color:var(--st-gold-hi,#f7e088);
	border-color:rgba(231,200,140,0.4);
	background:rgba(231,200,140,0.08);
}
/* Promo popup: what is applied now, and what went wrong. */
.cfpe-promo-modal__state{
	margin:0 0 12px;padding:9px 12px;border-radius:9px;
	border:1px solid rgba(231,200,140,0.4);background:rgba(231,200,140,0.08);
	color:var(--st-gold-hi,#f7e088);font:500 13.5px/1.4 "Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
}
.cfpe-promo-modal__error{
	margin:8px 0 0;color:#f6b3af;font:500 13px/1.4 "Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
}
.cfpe-promo-modal__state[hidden],.cfpe-promo-modal__error[hidden]{display:none;}
.cfpe-promo-modal .cfpe-name-modal__input{text-transform:uppercase;}
.cfpe-promo-modal .cfpe-name-modal__input::placeholder{text-transform:none;}

/* Below 1500px the bar is tight (a signed-in customer also has My Account,
   the design's name and Save as new in it), so Save and the promo button show
   their icons only. Their names stay for screen readers and as hover text. */
@media (min-width:701px) and (max-width:1499px){
	.cfpe-studio-actions .cfpe-btn--save{padding:0 11px;}
	.cfpe-studio-actions .cfpe-btn--save .cfpe-btn__label,
	.cfpe-promo-btn:not(.is-applied) .cfpe-promo-btn__label{
		position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
	}
	.cfpe-promo-btn{padding:0 9px;}
	.cfpe-promo-btn.is-applied .cfpe-promo-btn__label{max-width:124px;overflow:hidden;text-overflow:ellipsis;}
}
/* Under 1366px Save as new is offered when the design's name is clicked (as on phones). */
@media (min-width:701px) and (max-width:1365px){
	body.cfpe-editor-active .cfpe-studio-actions #cfpe-save-as-new{display:none !important;}
	/* An applied code shows as its gold tag only. With the code's name on the
	   button, the title beside the logo was squeezed to a few letters a line
	   on tablets and small laptops. The name stays in the popup, in the
	   button's hover text and for screen readers, and the price already shows
	   the saving. */
	.cfpe-promo-btn.is-applied .cfpe-promo-btn__label{
		position:absolute;width:1px;height:1px;max-width:none;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
	}
}
/* Small laptops and tablets: the crossed-out price stays in the promo popup. */
@media (min-width:701px) and (max-width:1199px){
	.cfpe-btn__was{display:none;}
	.cfpe-promo-btn.is-applied .cfpe-promo-btn__label{max-width:64px;}
	/* The title takes every pixel the logo and the buttons leave. (With the
	   wide-screen columns it got only part of the spare room, and the model
	   line was cut short while space sat unused beside it.) */
	body.cfpe-editor-active #cfpe-nav .cfpe-nav__bar{grid-template-columns:max-content minmax(0,1fr) max-content;}
}
/* The title area (computers and tablets): the design's name gives way first,
   so the model line ("For the Fender Stratocaster (SSS)") keeps its room. */
@media (min-width:701px){
	body.cfpe-editor-active #cfpe-nav .cfpe-docname-chip{flex:0 1000 auto;min-width:56px;}
	body.cfpe-editor-active #cfpe-nav .cfpe-studio-id{flex:0 1 auto;}
}
/* A named design on a mid-size screen (1200-1499px): its name takes the
   place of the "Will it fit my guitar?" link, which stays under the ? button. */
@media (min-width:1200px) and (max-width:1499px){
	body.cfpe-editor-active #cfpe-nav .cfpe-studio-title:has(.cfpe-docname-chip:not([hidden])) .cfpe-studio-model__fit{display:none;}
}
/* Under 1200px there is no room for title, name and buttons side by side:
   a named design shows its name in place of the words "Design Studio",
   above the model line (as on phones). */
@media (min-width:701px) and (max-width:1199px){
	body.cfpe-editor-active #cfpe-nav .cfpe-studio-title:has(.cfpe-docname-chip:not([hidden])){flex-direction:column;justify-content:center;gap:0;}
	body.cfpe-editor-active #cfpe-nav .cfpe-studio-title:has(.cfpe-docname-chip:not([hidden])) .cfpe-studio-heading{display:none;}
	body.cfpe-editor-active #cfpe-nav .cfpe-studio-title:has(.cfpe-docname-chip:not([hidden])) .cfpe-docname-chip{
		order:-1;flex:0 1 auto;min-height:22px;max-width:100%;color:var(--st-text,#ece7df);
	}
}
/* Tablets: a slightly smaller model line, which may take two lines when it has to. */
@media (min-width:701px) and (max-width:1023px){
	body.cfpe-editor-active #cfpe-nav .cfpe-studio-model{font-size:11.5px;letter-spacing:.01em;line-height:1.15;white-space:normal;text-align:center;}
	body.cfpe-editor-active #cfpe-nav .cfpe-studio-model__name{overflow:visible;text-overflow:clip;}
}
/* Upright tablets: tighter still. */
@media (min-width:701px) and (max-width:899px){
	.cfpe-studio-actions{gap:6px;}
	.cfpe-studio-actions .cfpe-btn--cart{padding:0 10px;}
	.cfpe-btn__price{margin-left:7px;padding-left:7px;}
	body.cfpe-editor-active #cfpe-nav .cfpe-studio-heading{font-size:13px !important;}
	/* Japanese buttons are wider, so the title has less room: the model line
	   stands alone there (two lines at most under a design's name). */
	html:lang(ja) body.cfpe-editor-active #cfpe-nav .cfpe-studio-heading{display:none;}
	html:lang(ja) body.cfpe-editor-active #cfpe-nav .cfpe-studio-model{font-size:11px;line-height:1.14;}
	html:lang(ja) body.cfpe-editor-active #cfpe-nav .cfpe-studio-title:has(.cfpe-docname-chip:not([hidden])) .cfpe-studio-model__name{
		display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;
	}
}
/* Japanese button names are longer, so Save and the promo button stay as
   icons on wide screens too. */
@media (min-width:1500px){
	html:lang(ja) .cfpe-studio-actions .cfpe-btn--save{padding:0 11px;}
	html:lang(ja) .cfpe-studio-actions .cfpe-btn--save .cfpe-btn__label,
	html:lang(ja) .cfpe-promo-btn:not(.is-applied) .cfpe-promo-btn__label{
		position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
	}
	html:lang(ja) .cfpe-promo-btn{padding:0 9px;}
}

/* Phones: two rows.
   A: "Design Studio" (or the design's name), Save as an icon, Add to cart with the price.
   B: the model line and "Promo code?".
   Before, the model line shared one row with the buttons and ran underneath
   them as soon as Add to cart appeared. */
@media (max-width:700px), (max-height:500px) and (pointer:coarse){
	body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-studio-bar{
		flex-wrap:wrap;row-gap:0;column-gap:6px;
	}
	body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-studio-title,
	body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-studio-id,
	body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-studio-actions,
	body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-addcart-form{
		display:contents !important;
	}
	body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-studio-heading{
		order:1;flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;
	}
	/* A named design shows its name here in place of the words "Design Studio". */
	body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-docname-chip{
		order:2;flex:1 1 0;min-width:0;max-width:none;min-height:44px;margin:0;padding:0 2px;
		font-size:13.5px !important;color:var(--st-text,#ece7df);
	}
	body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-studio-bar:has(.cfpe-docname-chip:not([hidden])) .cfpe-studio-heading{
		display:none;
	}
	body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-studio-actions #cfpe-save-design{
		order:3;flex:0 0 auto;
		min-height:44px !important;min-width:44px;padding:0 !important;justify-content:center;
		border:1px solid rgba(255,255,255,0.22) !important;
		background:transparent !important;
		color:var(--st-text,#ece7df) !important;
		box-shadow:none !important;
	}
	body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-studio-actions #cfpe-save-design .cfpe-btn__label{
		position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
	}
	body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-studio-actions #cfpe-save-design .cfpe-i{width:19px;height:19px;}
	body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-studio-actions #cfpe-save-design.is-saved{
		border-color:rgba(125,219,146,0.55) !important;
		background:rgba(125,219,146,0.14) !important;
		color:#b9f0c4 !important;
		opacity:1 !important;
	}
	/* With no word on the button, the icon carries the state: a tick once saved.
	   (The rules that swap the icons on computers sit inside the desktop-only block.) */
	body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-studio-actions #cfpe-save-design.is-saved .cfpe-i--save{display:none;}
	body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-studio-actions #cfpe-save-design.is-saved .cfpe-i--check{display:inline-block;}
	body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-studio-actions #cfpe-add-to-cart{
		order:4;flex:0 0 auto;
		min-height:44px !important;padding:0 12px !important;
		font:700 13px/1 "Inter",system-ui,-apple-system,"Segoe UI",sans-serif !important;
		text-transform:none !important;
	}
	body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-btn__price{margin-left:8px;padding-left:8px;}
	body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-btn__was{display:none;}
	/* The row break. */
	body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-studio-bar::after{
		content:"";order:5;flex:0 0 100%;height:0;
	}
	body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-studio-model{
		order:6;flex:1 1 0;min-width:0;min-height:26px;
	}
	body.cfpe-editor-active #cfpe-editor.cfpe-studio #cfpe-promo-open{
		order:7;flex:0 0 auto;
		min-height:26px;padding:0 4px;margin-right:-4px;border-radius:7px;
		font-size:12px;gap:5px;
	}
	body.cfpe-editor-active #cfpe-editor.cfpe-studio #cfpe-promo-open .cfpe-i{width:14px;height:14px;}
	body.cfpe-editor-active #cfpe-editor.cfpe-studio #cfpe-promo-open.is-applied{padding:0 7px;margin-right:0;}
}
/* A phone on its side has very little height: the second row steps aside
   (a code still arrives by link, and the cart takes one too). */
@media (max-height:500px) and (pointer:coarse){
	body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-studio-bar::after,
	body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-studio-model,
	body.cfpe-editor-active #cfpe-editor.cfpe-studio #cfpe-promo-open:not(.is-applied){
		display:none;
	}
	body.cfpe-editor-active #cfpe-editor.cfpe-studio #cfpe-promo-open.is-applied{order:2;min-height:36px;}
}

/* ──────────────────────────────────────────────────────────
 * Pickups option (a placeholder for now)
 * "Pickups · SSS" sits between Guitar look and Text style and opens a small
 * panel with the four pickup layouts. The one this GuitarJacket is cut for is
 * marked "Selected"; the others are locked and read "Coming soon" until their
 * masks are built (includes/guitar-appearance.php, cfpe_pickup_fold_markup).
 * Phones have no options row: there the "(SSS)" in the header's model line is
 * a small chip that opens the same panel as a bottom sheet.
 * ────────────────────────────────────────────────────────── */
/* The header chip is for phones; wider screens keep the plain "(SSS)". */
body.cfpe-editor-active .cfpe-studio-model__pickups{display:none;}

/* Options-row button: the current layout as a small gold badge after the word. */
.cfpe-options .cfpe-pickup-fold__code{
	display:inline-flex;align-items:center;min-height:20px;padding:0 6px;
	border:1px solid rgba(231,200,140,0.5);border-radius:6px;
	color:var(--st-gold-hi,#f7e088);
	font:600 11.5px/1 "Orbitron","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.05em;
}
/* The panel hangs from its own button. Below very wide screens it lines up
   with the button's right edge, so it opens over the guitar and stays clear
   of the Layers panel and the window edge. */
.cfpe-options>details#cfpe-pickup-fold{position:relative !important;}
.cfpe-options>.cfpe-fold--pickups>.cfpe-fold__panel{left:0;right:auto;width:430px;max-width:calc(100vw - 32px);padding:14px 14px 12px;overflow:auto;}
@media (max-width:1599px){
	.cfpe-options>.cfpe-fold--pickups>.cfpe-fold__panel{left:auto;right:0;}
}

.cfpe-pickup-panel__head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 6px;}
.cfpe-pickup-panel__title{margin:0;color:#fff;font:700 15px/1.2 "Orbitron","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;}
.cfpe-pickup-panel__done{display:none !important;}
.cfpe-pickup-panel__lead{margin:0 0 12px;color:var(--st-dim,rgba(236,231,223,.68));font:400 13px/1.45 "Inter",system-ui,-apple-system,"Segoe UI",sans-serif;white-space:normal;}
.cfpe-pickup-panel__list{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0;padding:0;list-style:none;}
.cfpe-pickup-card{
	display:flex;align-items:center;gap:10px;min-width:0;margin:0;padding:10px;
	border:1px solid var(--st-line-2,rgba(255,255,255,0.14));border-radius:12px;
	background:var(--st-raise,#17171c);white-space:normal;
}
.cfpe-pickup-card.is-current{border-color:rgba(231,200,140,0.8);background:rgba(231,200,140,0.1);}
.cfpe-pickup-card__diagram{flex:0 0 auto;display:inline-flex;}
.cfpe-pickup-card__diagram svg{display:block;width:44px;height:54px;}
/* Locked layouts: the picture steps back; the words stay easy to read. */
.cfpe-pickup-card.is-locked .cfpe-pickup-card__diagram{opacity:.4;}
.cfpe-pickup-card__copy{display:flex;flex-direction:column;gap:3px;min-width:0;}
.cfpe-pickup-card__code{color:#fff;font:700 14px/1.1 "Orbitron","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.05em;}
.cfpe-pickup-card.is-locked .cfpe-pickup-card__code{color:var(--st-text,#ece7df);}
.cfpe-pickup-card__blurb{color:var(--st-dim,rgba(236,231,223,.68));font:400 11.5px/1.35 "Inter",system-ui,-apple-system,"Segoe UI",sans-serif;}
.cfpe-pickup-card__state{
	display:inline-flex;align-items:center;gap:5px;margin-top:2px;
	color:var(--st-dim,rgba(236,231,223,.68));
	font:600 11.5px/1.2 "Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
}
.cfpe-pickup-card.is-current .cfpe-pickup-card__state{color:var(--st-gold-hi,#f7e088);}
.cfpe-pickup-card__state .cfpe-i{width:13px;height:13px;}
.cfpe-pickup-panel__note{margin:10px 0 0;color:var(--st-dim,rgba(236,231,223,.68));font:400 12px/1.4 "Inter",system-ui,-apple-system,"Segoe UI",sans-serif;white-space:normal;}

/* Keeping the options row on one line. A second line would take height from
   the guitar, so as the window narrows the row gives things up in steps:
   first the word "Pickups" (the icon and the layout badge stay; the word
   remains for screen readers and in the tooltip), then the "Background"
   label, then the small icons in front of Guitar look, Pickups and Text style. */
@media (min-width:701px) and (max-width:1399px){
	.cfpe-options>.cfpe-fold--pickups .cfpe-fold__text{
		position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
	}
}
@media (min-width:1100px) and (max-width:1319px){
	.cfpe-options .cfpe-bg-select-wrap__label{display:none;}
}
@media (min-width:701px) and (max-width:1199px){
	.cfpe-options>.cfpe-fold--pickups .cfpe-fold__icon{display:none;}
}
@media (min-width:701px) and (max-width:1099px){
	.cfpe-options{padding-left:12px;padding-right:12px;}
	.cfpe-options .cfpe-fold__icon,
	.cfpe-options .cfpe-guitar-fold__icon{display:none;}
	.cfpe-options .cfpe-fold__summary{padding:0 9px;gap:7px;}
}
/* Just above 1100px the wide rail and the Layers panel leave the row at its
   narrowest, so the icons step aside there too. */
@media (min-width:1100px) and (max-width:1139px){
	.cfpe-options .cfpe-fold__icon,
	.cfpe-options .cfpe-guitar-fold__icon{display:none;}
}
/* Site admins have one more button in this row (Save as template), so for
   them the row gives up the word and the label a little earlier. */
@media (min-width:1400px) and (max-width:1559px){
	.cfpe-options:has(#cfpe-save-template)>.cfpe-fold--pickups .cfpe-fold__text{
		position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
	}
}
@media (min-width:1320px) and (max-width:1479px){
	.cfpe-options:has(#cfpe-save-template) .cfpe-bg-select-wrap__label{display:none;}
}
@media (min-width:1200px) and (max-width:1399px){
	.cfpe-options:has(#cfpe-save-template)>.cfpe-fold--pickups .cfpe-fold__icon{display:none;}
}
/* The narrowest tablets, just above phone size. */
@media (min-width:701px) and (max-width:759px){
	.cfpe-options .cfpe-bg-select-wrap{margin-right:0;}
	.cfpe-options .cfpe-fold__summary{padding:0 6px;}
}

@media (max-width:700px), (max-height:500px) and (pointer:coarse){
	/* Header model line: "(SSS)" becomes a chip that opens the Pickups sheet. */
	body.cfpe-editor-active .cfpe-studio-model__code{display:none;}
	body.cfpe-editor-active .cfpe-studio-model__name{position:relative;overflow:visible;}
	body.cfpe-editor-active .cfpe-studio-model__pickups{
		-webkit-appearance:none;appearance:none;position:static;
		display:inline-flex;align-items:center;gap:1px;
		min-height:22px;margin:0 2px 0 5px;padding:0 3px 0 7px;
		border:1px solid rgba(229,193,120,0.6);border-radius:999px;background:transparent;
		color:var(--st-gold-hi,#f2d99d);
		font:700 11px/1 "Inter",system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.04em;
		vertical-align:middle;cursor:pointer;touch-action:manipulation;
	}
	body.cfpe-editor-active .cfpe-studio-model__pickups .cfpe-i{width:12px;height:12px;}
	body.cfpe-editor-active .cfpe-studio-model__pickups[aria-expanded="true"]{background:rgba(229,193,120,0.16);}
	body.cfpe-editor-active .cfpe-studio-model__pickups:focus-visible{outline:2px solid var(--st-gold,#e5c178);outline-offset:2px;}
	/* The whole model line is the tap area for the chip, plus the gaps above
	   and below it (it stops short of the Save button above and the Guitar
	   look strip below), so a thumb does not have to hit the small chip. */
	body.cfpe-editor-active .cfpe-studio-model__pickups::after{
		content:"";position:absolute;left:0;right:-10px;top:-2px;bottom:-8px;
	}

	/* The panel as a bottom sheet. */
	#cfpe-pickup-fold>.cfpe-fold__panel{width:100%;max-width:none;max-height:min(76vh,620px,calc(var(--cfpe-vvh,100vh) - 6.5rem)) !important;padding:.4rem .95rem 1rem;}
	.cfpe-pickup-panel__head{margin:0 0 .5rem;padding:0 0 .5rem;border-bottom:1px solid rgba(255,255,255,0.08);}
	.cfpe-pickup-panel__title{font:600 1.12rem/1.2 "Russo One","Orbitron","Inter",system-ui,sans-serif;color:#f3efe7;}
	.cfpe-pickup-panel__done{display:inline-flex !important;align-items:center;justify-content:center;}
	.cfpe-pickup-card{padding:10px 9px;gap:8px;}
	.cfpe-pickup-card__diagram svg{width:40px;height:49px;}
}
/* Small Japanese phones: "クーポンコードを入力" is wide, so the model line and
   its chip tighten a little to sit beside it. */
@media (max-width:379px){
	html:lang(ja) body.cfpe-editor-active #cfpe-editor.cfpe-studio .cfpe-studio-model{font-size:10.5px;letter-spacing:0;}
	html:lang(ja) body.cfpe-editor-active .cfpe-studio-model__pickups{margin-left:3px;margin-right:1px;padding:0 2px 0 6px;font-size:10.5px;}
}
/* Very narrow phones: one layout per row, so the words keep their room, and
   "Promo code?" shows as its tag icon so the model line and its chip fit
   beside it (the words stay for screen readers; an applied code still shows). */
@media (max-width:359px){
	.cfpe-pickup-panel__list{grid-template-columns:1fr;}
	body.cfpe-editor-active #cfpe-editor.cfpe-studio #cfpe-promo-open:not(.is-applied) .cfpe-promo-btn__label{
		position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
	}
}

/* Shadow and glow rows: the colour swatch sits where the other rows show a number. */
#cfpe-layers .cfpe-layers__fx-color{
	-webkit-appearance:none;appearance:none;
	justify-self:end;
	width:36px;height:24px;
	padding:0;
	border:1px solid var(--st-line-2);
	border-radius:6px;
	background:none;
	cursor:pointer;
}
#cfpe-layers .cfpe-layers__fx-color::-webkit-color-swatch-wrapper{padding:2px;}
#cfpe-layers .cfpe-layers__fx-color::-webkit-color-swatch{border:0;border-radius:4px;}
#cfpe-layers .cfpe-layers__fx-color::-moz-color-swatch{border:0;border-radius:4px;}
#cfpe-layers .cfpe-layers__fx-color:disabled{opacity:.45;cursor:default;}
body.cfpe-editor-active #cfpe-layers .cfpe-layers__fx-color{width:44px;height:30px;}
