.ip-template-card{position:relative}.ip-template-edit{position:absolute;right:12px;top:12px;z-index:2;width:38px;height:38px;display:grid;place-items:center;border:1px solid #dfddd7;background:#fff;color:#252a30;border-radius:50%;cursor:pointer}.ip-template-edit:hover,.ip-template-edit:focus-visible{border-color:#ff6826;color:#c3460e;box-shadow:0 0 0 3px #ff682620}.ip-template-edit svg{width:17px;height:17px}.ip-template-custom .ip-template-label:after{content:'ВАШ МАКЕТ';display:block;margin-top:6px;font-size:10px;font-weight:500;letter-spacing:.12em;color:#b5491d}.custom-editor-open{overflow:hidden}.custom-editor{box-sizing:border-box;width:min(1040px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:18px;background:#f7f6f2;color:#22272d;box-shadow:0 30px 100px #0005;font:14px/1.45 Arial,sans-serif}.custom-editor::backdrop{background:#171c23a8;backdrop-filter:blur(5px)}.custom-editor button,.custom-editor input,.custom-editor select,.custom-editor textarea{font:inherit;box-sizing:border-box}.custom-top{display:flex;align-items:center;justify-content:space-between;padding:24px 30px;border-bottom:1px solid #e1dfd8}.custom-top h2{font-size:27px;letter-spacing:-.8px;margin:6px 0 0}.custom-top .eyebrow{font-size:10px;letter-spacing:.15em}.custom-close{border:0;background:#ebe9e2;border-radius:50%;width:36px;height:36px;font-size:25px!important;cursor:pointer}.custom-workspace{display:grid;grid-template-columns:1.2fr 1fr;max-height:calc(100dvh - 245px);overflow:auto}.custom-stage{padding:28px;align-self:start;position:sticky;top:0}.custom-canvas{background-color:white;background-image:linear-gradient(90deg,transparent calc(50% - .5px),#eceae4 50%,transparent calc(50% + .5px)),linear-gradient(0deg,transparent calc(50% - .5px),#eceae4 50%,transparent calc(50% + .5px));border:1px solid #e5e2da;border-radius:12px;aspect-ratio:1;touch-action:none;padding:20px;box-sizing:border-box}.custom-canvas{width:min(100%,max(220px,calc(100dvh - 360px)));margin:auto}.custom-canvas svg{width:100%;height:100%;overflow:visible}.custom-canvas [data-layer]{cursor:move}.custom-canvas .editing{filter:drop-shadow(0 0 1px #ff6826)}.custom-hint{font-size:12px;color:#697077;margin:14px 0;line-height:1.6}.custom-sidebar{padding:26px;background:#fff;border-left:1px solid #e1dfd8}.custom-field{display:flex;flex-direction:column;gap:8px;margin-bottom:18px;font-size:12px;font-weight:600}.custom-field-head{display:flex;justify-content:space-between;gap:10px}.custom-field output{font-weight:400;color:#626973;font-variant-numeric:tabular-nums}.custom-field input[type=range]{accent-color:#ff6826;width:100%;cursor:pointer}.custom-field textarea,.custom-field select{width:100%;background:#f8f7f4;border:1px solid #ddd9d1;border-radius:7px;padding:10px;color:#252a30;font-weight:400}.custom-field textarea{resize:vertical}.custom-controls h3{font-size:16px;margin:24px 0 18px}.custom-controls>.custom-secondary{margin-bottom:18px}.custom-flags{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}.custom-flags label{display:flex;gap:6px;align-items:center;font-size:12px}.custom-flags input{accent-color:#ff6826}.custom-secondary{border:0;background:#eae7df;border-radius:5px;padding:11px 16px;color:#272c31;cursor:pointer}.custom-secondary:hover{background:#dfdbd1}.custom-footer{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:18px 26px;border-top:1px solid #e1dfd8;background:#f7f6f2}.custom-footer>div{display:flex;gap:12px}.custom-editor .ip-primary{border:0;background:#ff6826;color:#171d24;border-radius:5px;padding:12px 24px;font-weight:600;cursor:pointer}.custom-error:empty{display:none}.custom-error{padding:0 26px;color:#a6321c}.custom-editor :focus-visible{outline:2px solid #e9571b;outline-offset:3px}@media(max-width:700px){.custom-editor{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.custom-workspace{grid-template-columns:1fr;max-height:calc(100dvh - 220px)}.custom-stage{position:static;padding:16px}.custom-canvas{width:100%;max-width:330px;margin:auto}.custom-stage .custom-hint{display:none}.custom-sidebar{border-left:0;border-top:1px solid #e1dfd8;padding:20px}.custom-top{padding:16px}.custom-top h2{font-size:22px}.custom-footer{padding:12px;gap:8px;flex-wrap:wrap}.custom-footer>div{margin-left:auto}.custom-reset{font-size:12px!important;padding:9px}.custom-footer .ip-primary{padding:11px 16px}}
.custom-controls-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 18px}.custom-controls-heading h3{margin:0}.custom-delete{flex-shrink:0;border:1px solid #e8c6bc;border-radius:5px;background:#fff8f5;color:#a3311d;padding:9px 11px;cursor:pointer;font-size:12px!important}.custom-delete:hover{background:#fce7df;border-color:#b84028}.custom-removal{display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:6px;background:#f4f1e9;padding:10px 12px;font-size:13px}.custom-removal[hidden]{display:none}.custom-restore-last{border:0;background:transparent;color:#9b3916;text-decoration:underline;text-underline-offset:3px;padding:4px;cursor:pointer}.custom-editor .custom-save:disabled{opacity:.45;cursor:not-allowed}
.custom-sheet-handle,.custom-tabs{display:none}
.custom-control-group>.custom-secondary{margin-bottom:18px}
@media(max-width:700px){
 .custom-editor{position:fixed;inset:var(--custom-viewport-top,0px) 0 auto;margin:0;width:100%;max-width:none;height:var(--custom-viewport-height,100dvh);max-height:none;border-radius:0;overflow:hidden}
 .custom-editor[open]{display:flex;flex-direction:column}
 .custom-top{flex:none;padding:12px 16px;padding-top:max(12px,env(safe-area-inset-top));gap:12px;border:0;background:#f7f6f2}
 .custom-top .eyebrow{font-size:9px;letter-spacing:1.6px;color:#73766e}
 .custom-top h2{font-size:21px;letter-spacing:-.6px;margin:3px 0 0}
 .custom-close{width:44px;height:44px;flex:none;background:#e9e7e0}
 .custom-workspace{display:flex;flex-direction:column;flex:1;min-height:0;max-height:none;overflow:hidden}
 .custom-stage{display:flex;justify-content:center;align-items:center;flex:1;min-height:100px;overflow:hidden;padding:8px 20px 16px;background:radial-gradient(ellipse at 50% 35%,#fff 0,#efede7 75%);position:relative}
 .custom-stage .custom-hint{display:none}
 .custom-canvas{height:100%;width:auto;max-width:100%;max-height:100%;aspect-ratio:1;padding:14px;margin:0;border-radius:50%;border-color:#dfddd5;box-shadow:0 7px 24px #323a4610;flex:none}
 .custom-canvas .editing{filter:drop-shadow(0 0 1.5px #ed621f) drop-shadow(0 0 2px #ff9c4460)}
 .custom-sidebar{display:flex;flex-direction:column;flex:0 0 43%;min-height:0;overflow:hidden;padding:0 16px;border:0;border-radius:24px 24px 0 0;background:#fff;box-shadow:0 -8px 24px #20242b09}
 .custom-sheet-handle{display:flex;align-items:center;justify-content:center;flex-direction:column;flex:none;gap:4px;min-height:38px;border:0;background:none;color:#777d82;font-size:10px!important;cursor:pointer;padding:7px 10px 3px;touch-action:none}
 .custom-sheet-handle i{width:34px;height:4px;border-radius:8px;background:#d5d5ce}
 .custom-element-field{flex:none;flex-direction:row;align-items:center;gap:10px;margin:4px 0 8px;font-size:11px;color:#646b72;white-space:nowrap}
 .custom-element-field select{flex:1;min-width:0;padding:11px 30px 11px 12px;min-height:44px;border:1px solid #e3e2dc;background:#f7f7f4;border-radius:10px;color:#242930;text-overflow:ellipsis;font-size:14px}
 .custom-controls{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
 .custom-controls-heading{flex:none;margin:0 0 7px;min-height:44px;gap:10px}
 .custom-controls-heading h3{font-size:15px;margin:0;font-weight:600}
 .custom-delete{min-height:44px;border:0;background:#fff4ef;border-radius:10px;padding:10px 12px;color:#ad3d24}
 .custom-tabs{position:absolute;left:8px;top:max(8px,env(safe-area-inset-top));transform:none;z-index:2;display:flex;flex-direction:column;gap:2px;width:48px;box-sizing:border-box;padding:2px;border-radius:12px;background:#fffffff0;box-shadow:0 4px 18px #20242b24,0 1px 4px #20242b14;backdrop-filter:blur(8px);margin:0}
 .custom-tab{display:grid;place-items:center;flex:none;width:44px;height:44px;min-height:44px;border:0;border-radius:10px;background:transparent;color:#73776e;cursor:pointer}
 .custom-tab svg{width:20px;height:20px}
 .custom-tab[aria-selected=true]{background:#fff0e7;color:#c94d17;box-shadow:0 2px 6px #20242b12}
 .custom-panel-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:2px 2px 12px;scrollbar-width:thin}
 .custom-control-group{display:none}
 .custom-editor[data-tab=text] [data-control-group=text],.custom-editor[data-tab=position] [data-control-group=position],.custom-editor[data-tab=style] [data-control-group=style]{display:block}
 .custom-panel-scroll .custom-field{gap:7px;margin-bottom:14px;font-size:12px}
 .custom-panel-scroll .custom-field textarea,.custom-panel-scroll .custom-field select{font-size:16px;border-radius:10px;background:#fafaf7;min-height:46px}
 .custom-panel-scroll textarea{min-height:100px;resize:none;line-height:1.45}
 .custom-field-head{align-items:center}
 .custom-field output{min-width:40px;text-align:center;padding:3px 7px;background:#f4f2ec;border-radius:6px;color:#383d43;font-size:12px}
 .custom-field input[type=range]{height:32px;margin:0;touch-action:pan-y}
 .custom-field input[type=range]::-webkit-slider-thumb{height:26px;width:26px}
 .custom-field input[type=range]::-moz-range-thumb{height:24px;width:24px}
 .custom-flags{gap:8px;margin:10px 0}
 .custom-flags label{min-height:44px;padding:0 10px;border-radius:8px;background:#f6f5f0;box-sizing:border-box}
 .custom-flags input{width:18px;height:18px}
 .custom-secondary{min-height:44px;border-radius:9px}
 .custom-removal{flex:none;min-height:44px;padding:2px 12px;margin-bottom:6px;background:#fff4e9}
 .custom-restore-last{min-height:44px}
 .custom-editor[data-panel=collapsed] .custom-sidebar{flex:0 0 auto;min-height:0}
 .custom-editor[data-panel=collapsed] .custom-controls,.custom-editor[data-panel=collapsed] .custom-removal{display:none}
 .custom-editor[data-panel=collapsed] .custom-element-field{margin-bottom:12px}
 .custom-footer{display:grid;grid-template-columns:auto 1fr;flex:none;gap:10px;padding:12px 16px;padding-bottom:max(12px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid #eeede7}
 .custom-footer>div{display:contents}
 .custom-footer .custom-cancel{display:none}
 .custom-footer .custom-reset{min-height:48px;font-size:12px!important;padding:10px 12px;color:#6c716a;background:#f4f3ee;border-radius:12px}
 .custom-editor .custom-save{min-height:48px;width:100%;border-radius:12px;font-size:14px;padding:12px 14px;background:#ff6826;box-shadow:0 4px 12px #ff682625}
 .custom-error{flex:none;background:#fff3ec;font-size:12px;line-height:1.3;padding:8px 16px;margin:0;max-height:48px;overflow:auto}
}
@media(max-width:700px) and (max-height:600px){
 .custom-top{padding-top:7px;padding-bottom:7px}.custom-top .eyebrow{display:none}.custom-stage{min-height:75px;padding:4px 16px 8px}.custom-controls-heading{margin-bottom:3px}.custom-sheet-handle{min-height:26px;padding:5px;gap:3px}.custom-sheet-handle span{display:none}.custom-footer{padding-top:7px;padding-bottom:7px}
}
.custom-delete svg{display:none}
@media(max-width:700px){
 .custom-sidebar{position:relative}
 .custom-element-field{font-size:0;gap:0;margin-right:52px;margin-bottom:10px}
 .custom-element-field select{font-size:16px}
 .custom-controls-heading{min-height:0;height:0;margin:0}
 .custom-controls-heading h3{display:none}
 .custom-delete{position:absolute;top:42px;right:16px;width:44px;padding:10px;display:grid;place-items:center}
 .custom-delete svg{display:block;width:20px;height:20px}
 .custom-delete span{display:none}
 .custom-editor[data-panel=collapsed] .custom-element-field{margin-right:0}
 .custom-editor[data-panel=collapsed] .custom-sidebar{flex-basis:auto}
 .custom-field input[type=range]{appearance:none;-webkit-appearance:none;background:transparent;height:36px}
 .custom-field input[type=range]::-webkit-slider-runnable-track{height:5px;background:#e5e4dd;border-radius:10px}
 .custom-field input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;margin-top:-10px;height:26px;width:26px;border:3px solid #fff;border-radius:50%;background:#ff6826;box-shadow:0 1px 6px #a7442440}
 .custom-field input[type=range]::-moz-range-track{height:5px;background:#e5e4dd;border-radius:10px}
 .custom-field input[type=range]::-moz-range-thumb{height:20px;width:20px;border:3px solid #fff;border-radius:50%;background:#ff6826;box-shadow:0 1px 6px #a7442440}
}
@media(max-width:700px) and (max-height:600px){.custom-delete{top:30px}}
.custom-input-done{display:none}
@media(max-width:700px){
 .custom-stage{align-self:stretch;width:100%;box-sizing:border-box}
 .custom-editor[data-panel=collapsed] .custom-sidebar{flex-basis:auto}
 .custom-panel-scroll .custom-field{gap:4px;margin-bottom:8px}
 .custom-editor[data-typing=true] .custom-top>div{flex:1}
 .custom-editor[data-typing=true] .custom-input-done{display:block;min-height:44px;border:0;border-radius:10px;padding:10px 14px;color:#a54217;background:#ff682612;cursor:pointer}
 .custom-editor[data-typing=true] .custom-close{display:none}
 .custom-editor[data-typing=true] .custom-stage{flex:0 1 120px;min-height:70px;padding:5px 12px 10px}
 .custom-editor[data-typing=true] .custom-sidebar{flex:1;min-height:120px;padding-top:14px}
 .custom-editor[data-typing=true] .custom-element-field,.custom-editor[data-typing=true] .custom-sheet-handle,.custom-editor[data-typing=true] .custom-tabs,.custom-editor[data-typing=true] .custom-delete{display:none}
 .custom-editor[data-typing=true] [data-control-group=text]{height:100%}
 .custom-editor[data-typing=true] [data-control-group=text]>.custom-field{height:100%;margin:0}
 .custom-editor[data-typing=true] textarea{flex:1;min-height:60px}
}
@media(max-width:700px){
 .custom-stage{container-type:size}
 .custom-canvas{width:min(100cqw,100cqh);height:min(100cqw,100cqh)}
}
/* Compact mobile chrome: give the space to the imprint and the active controls. */
@media(max-width:700px){
 .custom-top{padding:4px 12px;padding-top:max(4px,env(safe-area-inset-top));gap:8px}
 .custom-top .eyebrow{display:none}
 .custom-top h2{font-size:17px;margin:0;letter-spacing:-.3px}
 .custom-stage{padding:2px 6px 6px}
 .custom-canvas{padding:6px}
 .custom-sidebar{padding:6px 10px 0;border-radius:16px 16px 0 0}
 .custom-sheet-handle{position:absolute;top:6px;left:10px;width:44px;height:44px;min-height:44px;padding:0;gap:0;border-radius:10px;background:#f7f7f4;color:#666d70}
 .custom-sheet-handle i{width:10px;height:10px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;background:transparent;border-radius:0;transform:translateY(-3px) rotate(45deg)}
 .custom-sheet-handle span{display:block;position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .custom-element-field{height:44px;min-height:44px;margin:0 52px 8px 52px}
 .custom-delete{top:6px;right:10px}
 .custom-editor[data-panel=collapsed] .custom-sidebar{padding-bottom:6px}
 .custom-editor[data-panel=collapsed] .custom-element-field{margin:0 0 0 52px}
 .custom-editor[data-panel=collapsed] .custom-sheet-handle i{transform:translateY(3px) rotate(225deg)}
 .custom-footer{padding:6px 10px;padding-bottom:max(6px,env(safe-area-inset-bottom));gap:8px}
 .custom-footer .custom-reset,.custom-editor .custom-save{min-height:44px;padding-top:10px;padding-bottom:10px}
}
/* Keep the dialog name accessible without reserving a visible header row. */
.custom-top{position:absolute;inset:8px 8px auto auto;z-index:5;padding:0;gap:0;border:0;background:transparent}
.custom-top>div{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.custom-close{width:44px;height:44px;flex:none}
@media(max-width:700px){
 .custom-top{top:max(8px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right))}
 .custom-editor[data-typing=true] .custom-input-done{background:#fff4ed}
}
@media(min-width:701px){.custom-element-field{margin-right:36px}}
/* The editor owns the viewport; only its controls scroll. */
.custom-editor{position:fixed;inset:var(--custom-viewport-top,0px) 0 auto;margin:0;width:100%;max-width:none;height:var(--custom-viewport-height,100dvh);max-height:none;border-radius:0;overflow:hidden}
@media(min-width:701px),(orientation:landscape) and (max-height:600px){
 .custom-editor[open]{display:grid;grid-template-columns:minmax(0,1fr) clamp(290px,34vw,400px);grid-template-rows:minmax(0,1fr) auto auto}
 .custom-workspace{display:contents;max-height:none;overflow:visible}
 .custom-stage{grid-column:1;grid-row:1 / 4;display:flex;align-items:center;justify-content:center;align-self:stretch;position:relative;top:auto;flex:none;width:auto;min-width:0;min-height:0;overflow:hidden;padding:8px;padding-left:max(8px,env(safe-area-inset-left));padding-top:max(8px,env(safe-area-inset-top));padding-bottom:max(8px,env(safe-area-inset-bottom));container-type:size;background:radial-gradient(ellipse at 50% 35%,#fff 0,#efede7 75%)}
 .custom-stage .custom-hint{display:none}
 .custom-canvas{width:min(100cqw,100cqh);height:min(100cqw,100cqh);max-width:100%;max-height:100%;flex:none;margin:0;padding:8px;border-radius:50%;border-color:#dfddd5;box-shadow:0 7px 24px #323a4610}
 .custom-sidebar,.custom-editor[data-panel=collapsed] .custom-sidebar{grid-column:2;grid-row:1;display:flex;flex-direction:column;position:relative;min-width:0;min-height:0;overflow:hidden;flex:none;padding:12px 14px 0;padding-top:max(12px,env(safe-area-inset-top));padding-right:max(14px,env(safe-area-inset-right));border:0;border-left:1px solid #e1dfd8;border-radius:0;box-shadow:none;background:#fff}
 .custom-sheet-handle{display:none}
 .custom-element-field,.custom-editor[data-panel=collapsed] .custom-element-field{flex:none;flex-direction:row;align-items:center;gap:0;height:44px;min-height:44px;margin:0 106px 12px 0;font-size:0}
 .custom-element-field select{flex:1;min-width:0;min-height:44px;width:100%;padding:10px 28px 10px 10px;border:1px solid #e3e2dc;border-radius:10px;font-size:16px;text-overflow:ellipsis}
 .custom-controls,.custom-editor[data-panel=collapsed] .custom-controls{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
 .custom-controls-heading{height:0;min-height:0;margin:0}
 .custom-controls-heading h3{display:none}
 .custom-delete{position:absolute;top:max(12px,env(safe-area-inset-top));right:max(66px,calc(env(safe-area-inset-right) + 52px));display:grid;place-items:center;width:44px;min-height:44px;padding:10px;border:0;border-radius:10px;background:#fff4ef}
 .custom-delete svg{display:block;width:20px;height:20px}
 .custom-delete span{display:none}
 .custom-top{top:max(12px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right))}
 .custom-tabs{position:absolute;top:max(8px,env(safe-area-inset-top));left:max(8px,env(safe-area-inset-left));transform:none;z-index:2;display:flex;flex-direction:column;gap:2px;width:48px;box-sizing:border-box;padding:2px;margin:0;border-radius:12px;background:#fffffff0;box-shadow:0 4px 18px #20242b24,0 1px 4px #20242b14;backdrop-filter:blur(8px)}
 .custom-tab{display:grid;place-items:center;flex:none;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:10px;background:transparent;color:#73776e;cursor:pointer}
 .custom-tab svg{width:20px;height:20px}
 .custom-tab[aria-selected=true]{background:#fff0e7;color:#c94d17;box-shadow:0 2px 6px #20242b12}
 .custom-panel-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:2px 2px 12px;scrollbar-width:thin}
 .custom-control-group{display:none}
 .custom-editor[data-tab=text] [data-control-group=text],.custom-editor[data-tab=position] [data-control-group=position],.custom-editor[data-tab=style] [data-control-group=style]{display:block}
 .custom-panel-scroll .custom-field{gap:6px;margin-bottom:12px}
 .custom-panel-scroll textarea,.custom-panel-scroll select{font-size:16px}
 .custom-panel-scroll textarea{min-height:100px;resize:vertical}
 .custom-field input[type=range]{height:32px;margin:0}
 .custom-secondary,.custom-flags label{min-height:44px}
 .custom-removal,.custom-editor[data-panel=collapsed] .custom-removal:not([hidden]){display:flex;flex:none;margin-bottom:8px;font-size:12px}
 .custom-removal[hidden]{display:none}
 .custom-footer{grid-column:2;grid-row:3;display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;padding:10px 14px;padding-bottom:max(10px,env(safe-area-inset-bottom));padding-right:max(14px,env(safe-area-inset-right));background:#fff;border-top:1px solid #eeede7;border-left:1px solid #e1dfd8}
 .custom-footer>div{display:contents}
 .custom-footer .custom-cancel{display:none}
 .custom-footer .custom-reset{min-height:44px;padding:10px;font-size:11px!important;border-radius:10px;color:#6c716a;background:#f4f3ee}
 .custom-editor .custom-save{width:100%;min-width:0;min-height:44px;padding:10px 12px;border-radius:10px;font-size:14px}
 .custom-error{grid-column:2;grid-row:2;min-height:0;max-height:54px;overflow:auto;margin:0;padding:8px 14px;font-size:12px;background:#fff3ec}
 .custom-editor[data-typing=true] .custom-stage{flex:none;min-height:0;padding:8px;padding-left:max(8px,env(safe-area-inset-left));padding-top:max(8px,env(safe-area-inset-top));padding-bottom:max(8px,env(safe-area-inset-bottom))}
 .custom-editor[data-typing=true] .custom-sidebar{flex:none;min-height:0;padding-top:max(12px,env(safe-area-inset-top))}
 .custom-editor[data-typing=true] .custom-input-done{display:block;min-height:44px;border:0;border-radius:10px;padding:10px 12px;background:#fff4ed;color:#a54217;cursor:pointer}
 .custom-editor[data-typing=true] .custom-close{display:none}
 .custom-editor[data-typing=true] .custom-element-field{display:flex}
 .custom-editor[data-typing=true] .custom-tabs{display:flex}
 .custom-editor[data-typing=true] .custom-delete{display:none}
 .custom-editor[data-typing=true] [data-control-group=text],.custom-editor[data-typing=true] [data-control-group=text]>.custom-field{height:auto}
 .custom-editor[data-typing=true] textarea{min-height:100px;flex:none}
}
/* Keep function switches next to their controls on a large workspace. */
.custom-editor .custom-group-text-field textarea{min-height:72px}
.custom-editor input[type=range]:disabled{opacity:.45;cursor:not-allowed}
@media(min-width:1024px){
 .custom-sidebar>.custom-tabs{position:static;inset:auto;transform:none;display:flex;flex:none;flex-direction:row;align-self:flex-start;gap:4px;width:auto;margin:0 0 12px;padding:4px;border-radius:12px;background:#f5f4f0;box-shadow:none;backdrop-filter:none}
}
.custom-editor[data-tab=symbols] [data-control-group=symbols]{display:block}.custom-symbol-settings{min-width:0}.custom-symbol-current{margin:0 0 10px;font-size:12px;font-weight:600;overflow-wrap:anywhere}.custom-symbol-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-bottom:16px}.custom-editor .custom-symbol-card{display:grid;place-items:center;min-width:0;width:100%;min-height:44px;aspect-ratio:1;padding:9px;border:1px solid #dfdbd3;border-radius:9px;background:#faf9f6;color:#252c33;cursor:pointer}.custom-symbol-card svg{display:block;width:100%;height:100%;max-width:36px;max-height:36px}.custom-editor .custom-symbol-card[aria-pressed=true]{border-color:#e95d20;background:#fff0e5;box-shadow:inset 0 0 0 1px #e95d20}.custom-symbol-card:hover{background:#f5eee3}.custom-symbol-number input[type=number]{width:76px;min-height:36px;padding:5px 7px;border:1px solid #e1ddd4;border-radius:7px;background:#f7f5ef;text-align:right;color:#343b42;font-size:16px;font-weight:400;font-variant-numeric:tabular-nums}.custom-symbol-gap{display:flex;justify-content:center;align-items:center;min-height:66px;padding:8px;border:1px solid #e9e4d8;border-radius:8px;background:#fff;color:#343c45;font-size:22px}.custom-symbol-gap-space{display:grid;place-items:center;flex:none;width:var(--symbol-gap,14px);height:36px;border-inline:1px dashed #ed6b25;background:#fff0dd;color:#c44a11;font:18px Arial,sans-serif}.custom-symbol-gap-shape{display:grid;place-items:center;flex:none;width:var(--symbol-size,24px);height:var(--symbol-size,24px)}.custom-symbol-gap-shape svg{width:100%;height:100%}.custom-symbol-text{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.custom-editor .custom-symbol-text textarea{flex:1 1 100px;min-width:70px;min-height:72px;width:0;margin:0}.custom-inline-symbol{display:grid;place-items:center;flex:none;width:38px;height:44px;padding:7px;border:1px solid #e0dcd3;border-radius:8px;background:#f8f3e9;color:#313a43;cursor:pointer}.custom-inline-symbol svg{width:100%;height:100%}.custom-canvas [data-symbol-gap-guide]{pointer-events:none}
