.cm-inline-icon{display:inline-block!important;width:1.25em!important;height:1.25em!important;object-fit:contain;vertical-align:-.22em;image-rendering:pixelated;margin:0 .18em;max-width:none!important}
.cm-inline-glyph-widget{position:relative;display:inline-block;line-height:1;vertical-align:-.22em;margin:0 .18em;user-select:all;-webkit-user-select:all}
.cm-inline-glyph-widget:before{content:'';position:absolute;inset:0;background:currentColor;-webkit-mask:var(--cm-glyph-image) center/contain no-repeat;mask:var(--cm-glyph-image) center/contain no-repeat;transform:rotate(var(--cm-glyph-frame-turn,var(--cm-glyph-turn,0deg))) scaleX(var(--cm-glyph-frame-flip,var(--cm-glyph-flip,1)));pointer-events:none;image-rendering:pixelated}
.cm-inline-glyph-widget>.cm-inline-icon{margin:0!important;vertical-align:0;pointer-events:none;user-select:none;-webkit-user-select:none}
.cm-rich-surface .cm-inline-glyph-widget{cursor:text;outline-offset:2px;border-radius:1px}
.cm-rich-surface .cm-inline-glyph-widget.cm-rich-glyph-selected{outline:1px solid #84e5df;background:#84e5df35}
.cm-inline-corrupted-glyph{opacity:0;filter:none;animation:none}
.cm-rich-icon-grid img.cm-rich-glyph-preview-icon{width:27px!important;height:27px!important}
.cm-rich-glyph-preview{width:27px;height:27px}
.cm-rich-surface{position:relative;white-space:pre-wrap;min-height:1em;outline-offset:6px}
.cm-rich-surface:focus{outline:2px solid #7dffd3}
.cm-rich-surface:empty:before{content:attr(data-placeholder);color:#8ea896;pointer-events:none}
.cm-rich-toolbar{position:fixed;z-index:2200;background:#102d22;border:1px solid #6eab8c;box-shadow:0 7px 25px #0008;color:#dfefdb;display:flex;align-items:center;gap:6px;padding:8px;box-sizing:border-box;flex-wrap:wrap;font:12px/1.4 Arial,sans-serif;color-scheme:dark;max-height:calc(100dvh - 20px);overflow:auto}
.cm-rich-button{border:1px solid #4b7e61;background:#1b422d;color:#dff1d9;padding:6px 10px;min-height:30px;cursor:pointer;font:12px/1.4 Arial,sans-serif}
.cm-rich-button:hover{border-color:#8cf0ba;background:#2a5b3d}
.cm-rich-toolbar input,.cm-rich-toolbar select{color:#e3efda;background:#0c2119;border:1px solid #52795e;padding:5px;font:12px/1.4 Arial,sans-serif;min-width:0;box-sizing:border-box}
.cm-rich-toolbar input[type=color]{width:34px;height:31px;padding:2px}
.cm-rich-toolbar select{max-width:110px;height:31px}
.cm-rich-color-button:before{content:'';display:inline-block;width:12px;height:12px;border:1px solid #a8c4b2;margin-right:6px;vertical-align:-2px;background:var(--rich-swatch,#e9f2d8)}
.cm-rich-color-panel{flex-basis:100%;padding-top:7px}
.cm-rich-panel-label{display:block;margin-bottom:7px;font:12px/1.5 Arial,sans-serif;color:#b3d8c2}
.cm-rich-color-swatches{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:10px}
.cm-rich-color-swatches .cm-rich-color-swatch{width:27px;height:27px;min-height:27px;padding:0;border:1px solid #8bad99}
.cm-rich-color-swatches .cm-rich-color-swatch:hover{outline:2px solid #8dffd2;outline-offset:2px}
.cm-rich-color-custom{display:flex;align-items:center;gap:8px}
.cm-rich-color-custom input[type=text]{width:110px;font-family:Consolas,monospace}
.cm-rich-color-panel>small{display:block;color:#ffc5b3;margin-top:6px}
.cm-rich-link-panel{display:flex;gap:8px;flex-basis:100%;flex-wrap:wrap;padding-top:6px}
.cm-rich-link-panel>input{flex:1;min-width:160px}
.cm-rich-link-panel>small{width:100%;color:#ffccae}
.cm-rich-icon-picker{flex-basis:100%;min-width:0;width:100%;box-sizing:border-box;padding-top:7px;font:12px/1.4 Arial,sans-serif;color:#dff1d9}
.cm-rich-icon-picker>input{width:100%;margin-bottom:8px;box-sizing:border-box;background:#0c2119;border:1px solid #52795e;color:#e3efda;padding:7px;font:13px/1.4 Arial,sans-serif}
.cm-rich-icon-categories{display:flex;gap:5px;overflow-x:auto;scrollbar-width:thin;padding:1px 1px 8px;margin-bottom:6px;min-width:0;max-width:100%}
.cm-rich-icon-category{flex:none;border:1px solid #497659;background:#143525;color:#cee5d2;padding:5px 8px;cursor:pointer;font:11px/1.4 Arial,sans-serif;white-space:nowrap}
.cm-rich-icon-category[aria-pressed=true]{background:#2b6245;border-color:#9becbc;color:#fff}
.cm-rich-icon-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(67px,1fr));gap:5px;max-height:220px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.cm-rich-icon-grid .cm-rich-icon-option{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;padding:7px 3px;background:#123624;border:1px solid #39664c;color:#dfeddf;cursor:pointer;font:10px/1.25 Arial,sans-serif}
.cm-rich-icon-grid .cm-rich-icon-option:hover,.cm-rich-icon-grid .cm-rich-icon-option[aria-pressed=true]{border-color:#8ff3b6;background:#23543a}
.cm-rich-icon-grid .cm-rich-icon-option>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;max-width:100%;height:2.5em;text-align:center}
.cm-rich-icon-grid img{width:27px;height:27px;object-fit:contain;image-rendering:pixelated}
.cm-rich-icon-count{display:block;color:#a6cab5;font-size:11px;margin:7px 0}
.cm-rich-icon-more{grid-column:1/-1;background:#143525;border:1px solid #497659;color:#dbefdf;padding:8px;cursor:pointer}
.cm-rich-icon-group{grid-column:1/-1;padding:8px 3px 2px;border-top:1px solid #345c45;color:#a7d8bd;font:11px/1.5 Consolas,monospace;text-transform:uppercase;letter-spacing:.08em}
.cm-rich-icon-group:first-child{border-top:0;padding-top:2px}
.cm-rich-toolbar button:focus-visible,.cm-rich-toolbar input:focus-visible,.cm-rich-toolbar select:focus-visible,.cm-rich-icon-picker button:focus-visible,.cm-rich-icon-picker input:focus-visible{outline:2px solid #8effd2;outline-offset:2px}
.cm-gallery-editor{box-sizing:border-box;width:100%;min-width:0;padding:9px;background:#0c291e;border:1px dashed #53886b;color:#d9efdc;font:12px/1.5 Arial,sans-serif;margin-bottom:10px}
.cm-gallery-editor-top{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.cm-gallery-editor-info{font-size:11px;color:#acd0b8}
.cm-gallery-editor-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.cm-gallery-edit-button{background:#153c2a;border:1px solid #538568;color:#e3efde;padding:6px 9px;cursor:pointer;font:11px/1.4 Arial,sans-serif}
.cm-gallery-edit-button:hover{background:#24563c;border-color:#8de5ad}
.cm-gallery-edit-danger{color:#ffcab8}
.cm-gallery-editor-previews{position:relative;display:flex;gap:7px;overflow-x:auto;scrollbar-width:thin;padding:4px 4px 7px;min-width:0;align-items:stretch}
.cm-gallery-edit-preview{position:relative;flex:none;width:94px;height:61px;padding:0;background:#071b13;border:2px solid #315c44;cursor:grab;touch-action:pan-y;user-select:none;overflow:hidden}
.cm-gallery-edit-preview>img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none;user-select:none}
.cm-gallery-edit-preview>span{position:absolute;bottom:1px;right:2px;min-width:17px;padding:0 3px;background:#052117d9;color:#e4f6e4;font:10px/17px Arial,sans-serif}
.cm-gallery-edit-preview[aria-pressed=true]{border-color:#7de6b2;box-shadow:0 0 0 1px #7de6b2}
.cm-gallery-edit-preview.cm-gallery-edit-dragging{opacity:.22;cursor:grabbing;border-style:dashed}
.cm-gallery-edit-preview.cm-gallery-edit-drop{outline:2px solid #b5ffcb;outline-offset:1px}
.cm-gallery-editor[data-dragging=true] .cm-gallery-editor-previews{cursor:grabbing}
.cm-gallery-edit-insertion{position:absolute;z-index:5;top:1px;bottom:4px;width:4px;background:#a6ffcc;pointer-events:none;box-shadow:0 0 0 1px #143e2b,0 0 10px #5fffb580}
.cm-gallery-edit-insertion:before,.cm-gallery-edit-insertion:after{content:'';position:absolute;left:-3px;width:10px;height:3px;background:#a6ffcc}
.cm-gallery-edit-insertion:before{top:0}.cm-gallery-edit-insertion:after{bottom:0}
.cm-gallery-drag-preview{position:fixed;z-index:5000;pointer-events:none!important;width:112px;height:72px;background:#0b281d;border:2px solid #a2ffcc;box-shadow:0 8px 25px #000b;transform:translate(-40%,-90%) rotate(-3deg);overflow:hidden;box-sizing:border-box}
.cm-gallery-drag-preview>img{display:block;width:100%;height:100%;object-fit:cover}
.cm-gallery-drag-preview>span{position:absolute;left:0;right:0;bottom:0;padding:2px 4px;background:#07271ee6;color:#dcffea;font:11px/1.4 Arial,sans-serif;text-align:center}
.cm-gallery-edit-add{flex:none;min-width:53px;min-height:61px;padding:0 15px;background:#153c2a;border:1px dashed #719a7d;color:#9dfac3;font:27px/1 Arial,sans-serif;cursor:pointer}
.cm-gallery-editor-live{display:block;font:11px/1.4 Arial,sans-serif;color:#9cddb7}
.cm-gallery-editor-live:empty{display:none}
.cm-gallery-editor button:focus-visible{outline:2px solid #afffc9;outline-offset:2px}
.cm-guide-category-icon-preview{display:inline-block;width:28px;height:28px;object-fit:contain;image-rendering:pixelated;vertical-align:middle;margin-right:7px}
.cm-guide-edit-form>.cm-guide-category-icon-control{flex:none}
.cm-guide-category-icon-chooser{flex-basis:100%;width:100%;max-width:650px}
#cubimo-design .cm-guide-category-tools>.cm-guide-edit-form{box-sizing:border-box;flex-basis:100%;min-width:0;width:100%;max-width:100%}
@media(max-width:650px){.cm-gallery-editor{padding:7px}.cm-gallery-editor-top{gap:6px}.cm-gallery-editor-info{flex-basis:100%}.cm-gallery-edit-preview{width:78px;height:52px}.cm-gallery-edit-add{min-height:52px;min-width:45px}}
.cm-crop-dialog{box-sizing:border-box;width:min(1050px,calc(100vw - 30px));max-height:calc(100dvh - 30px);overflow:auto;padding:24px;background:#102c20;border:1px solid #78bc95;color:#d6ebd1;font:14px/1.6 Arial,sans-serif}
.cm-crop-dialog::backdrop{background:#00170edb}
.cm-crop-header{display:flex;justify-content:space-between;align-items:center;gap:20px}
.cm-crop-header h2{font-size:22px;margin:0}
.cm-crop-help{font-size:12px;color:#a5c3ac}
.cm-crop-preview{position:relative;width:max-content;max-width:100%;margin:22px auto;overflow:hidden;line-height:0;user-select:none;touch-action:none}
.cm-crop-preview>img{display:block;max-width:100%;width:auto;height:auto;max-height:55vh;pointer-events:none}
.cm-crop-box{position:absolute;box-sizing:border-box;border:2px solid #95ffc0;box-shadow:0 0 0 2000px #0008;cursor:move;touch-action:none}
.cm-crop-handle{position:absolute;width:17px;height:17px;padding:0;background:#a6f9bf;border:2px solid #0f3424;touch-action:none;cursor:nwse-resize}
.cm-crop-handle--nw{top:-6px;left:-6px}.cm-crop-handle--ne{top:-6px;right:-6px;cursor:nesw-resize}.cm-crop-handle--se{bottom:-6px;right:-6px}.cm-crop-handle--sw{bottom:-6px;left:-6px;cursor:nesw-resize}
.cm-crop-fields{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:15px 0}
.cm-crop-fields label{display:flex;flex-direction:column;font-size:12px;gap:5px}
.cm-crop-fields input{background:#082419;border:1px solid #4f8060;color:#e0efd6;padding:8px;width:100%;box-sizing:border-box}
@media(max-width:650px){.cm-crop-dialog{padding:16px}.cm-crop-fields{grid-template-columns:1fr 1fr}.cm-rich-toolbar{gap:4px;padding:6px}.cm-rich-button{padding:6px 8px}}
