/* Element studio, restrained violet and graphite. */
.uce-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:17px 0 14px}
.uce-tools button,.uce-tools label{min-height:68px;margin:0;border:1px solid #e8e3f4;border-radius:15px;background:#f8f6fc;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#51466c;font-size:12px;cursor:pointer}
.uce-tools b{font-family:Georgia,serif;font-size:23px;line-height:1;color:#8d71cc;font-weight:400}
.uce-tools select{height:23px;border:0;background:transparent;width:100%;padding:0 7px;font-size:12px;text-align:center;color:#51466c}
#designerStage{overflow:auto;display:block;align-content:center;padding:26px;scrollbar-width:thin;background:#eeedf3;background-image:radial-gradient(#d0cbdc .8px,transparent .8px);background-size:12px 12px}
#designerStage:before{display:none}
#designerCard{max-width:none;max-height:none;margin:auto;touch-action:none;overflow:visible;flex-shrink:0;border-radius:2px;isolation:isolate}
#designerImage,#ucElementCanvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;display:block}
#ucElementCanvas{z-index:11}
#designerCard .drag-label,#dragQR{z-index:10!important;opacity:0}
#ucSelection{position:absolute;z-index:20;border:1.5px solid #7954c6;cursor:move;touch-action:none;box-sizing:border-box;box-shadow:0 0 0 1px rgba(255,255,255,.8)}
.uce-handle{position:absolute!important;padding:0!important;min-height:26px!important;min-width:26px!important;width:26px;height:26px;border:3px solid white!important;background:#7960d7!important;border-radius:9px!important;box-shadow:0 2px 7px #0002;touch-action:none;color:white!important;display:flex;align-items:center;justify-content:center;font-size:17px!important}
.uce-size{right:-28px;bottom:-28px;cursor:nwse-resize}.uce-rotate{left:calc(50% - 13px);top:-36px;border-radius:50%!important;cursor:grab}
.uce-viewbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 1px 0;color:#958ba3;font-size:11px}
.uce-viewbar>div{display:flex;align-items:center;gap:7px;direction:ltr}.uce-viewbar b{font-size:11px;font-weight:500;white-space:nowrap}
.uce-viewbar button{padding:3px 8px;min-height:30px;border:1px solid #e9e4f1;border-radius:9px;background:#faf8fd;color:#7c6a99;font-size:13px}
.uce-properties{padding:19px;border:1px solid #ece7f3;border-radius:20px;background:#fff;min-width:0;box-shadow:0 5px 22px #1a193809}
.uce-properties header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.uce-properties header small{font-size:11px;color:#9d92ab}.uce-properties h3{font-size:17px;margin:5px 0 0;color:#352b47}
.uce-properties header button,#ucReplaceImage{border:1px solid #e9e3f1;border-radius:10px;min-height:36px;background:#faf7fd;color:#837097;padding:6px 12px;font-size:12px}
#ucDelete{color:#b56d82;background:#fdf7f9;border-color:#f2e2e8}
.uce-properties textarea{width:100%;max-width:100%;box-sizing:border-box;resize:vertical;min-height:90px;padding:12px;border:1px solid #e7e0ef;border-radius:13px;background:#faf9fc;font:15px/1.7 Tajawal,Arial;color:#352d44;margin-bottom:14px}
.uce-properties input,.uce-properties select{width:100%;box-sizing:border-box}.uce-properties details{margin-top:15px;border-top:1px solid #f0ebf5;padding-top:12px}.uce-properties summary{font-size:13px;color:#8a749f;cursor:pointer;padding-bottom:14px}
.uce-check{display:flex;align-items:center;gap:9px;font-size:12px;color:#8f809f;margin:14px 0 0}.uce-check input{width:17px;height:17px;accent-color:#7960d7}
.uce-footnote{font-size:11px;color:#a195af;line-height:1.8;margin:15px 0 0}
.uce-empty{text-align:center;padding:6px 12px}.uce-empty>span{display:block;font-size:27px;color:#b8a2d2;margin-bottom:7px}.uce-empty strong{font-size:15px;color:#7f6c93}.uce-empty p{font-size:12px;color:#a396ae;line-height:1.8;margin:8px 0 0}
.uce-blank-button{width:100%;border:1px solid #e8dff3;background:#f8f4fc;color:#8e73ad;min-height:44px;border-radius:13px;font-size:13px;margin:12px 0 0}
.uce-expanded #designerStage{height:55vh;min-height:330px}
.uce-properties [hidden],#ucSelection[hidden]{display:none!important}
@media(max-width:370px){.uce-properties{padding:15px}.uce-viewbar{font-size:10px}.uce-viewbar>div{gap:4px}.uce-viewbar button{padding:3px 6px}}
/* Stage 2 — layers and editing controls. */
.uce-history{display:flex;gap:7px;margin:0 0 14px}.uce-history button{border:1px solid #dae4fb;border-radius:11px;min-height:39px;background:#f4f7ff;color:#6481c2;padding:7px 11px;font-size:12px}.uce-history #ucOpenLayers{margin-right:auto;background:linear-gradient(120deg,#edf3ff,#f0ebff);display:flex;gap:7px;align-items:center}.uce-history span{font-size:10px;color:#9a9fc3}.uce-history button:disabled{opacity:.4}
.uce-layer-panel{background:#fff;border:1px solid #e0e8fa;border-radius:20px;padding:0 16px 16px}.uce-layer-panel>summary{padding:17px 0;font-size:14px;font-weight:700;color:#5778bd;cursor:pointer}.uce-layer-panel>p,.uce-layer-panel>small{font-size:11px;color:#95a3be;line-height:1.8;margin:0 0 12px}.uce-layer-panel>small{display:block;margin:13px 0 0;font-size:10px}
#ucLayerList{font-size:12px;color:#96a4bf}.uce-layer-row{display:grid;grid-template-columns:18px minmax(0,1fr) repeat(4,29px);gap:5px;align-items:center;padding:8px 7px;border:1px solid #e5ebf8;border-radius:12px;margin-top:7px;background:#fafcff}.uce-layer-row.selected{background:#edf2ff;border-color:#c1d1f6}.uce-layer-row.muted{opacity:.65}.uce-layer-row input{width:15px;height:15px;accent-color:#6481d3}.uce-layer-row button{padding:0;border:0;background:transparent;color:#8c9cc0;min-height:33px;border-radius:8px;min-width:0}.uce-layer-row .uce-layer-name{text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#5c739f}.uce-layer-row svg{height:17px;width:17px}.uce-layer-row button:disabled{opacity:.25}
.uce-properties .uce-state:empty{display:none}.uce-state{padding:10px;border-radius:10px;background:#f5f1fc;color:#a08bbe;font-size:11px;line-height:1.6}.uce-properties input:disabled,.uce-properties select:disabled,.uce-properties textarea:disabled{opacity:.5}.uce-properties button:disabled{opacity:.35}
.uce-alignment>p{font-size:11px;color:#93a1ba;line-height:1.7;margin:0 0 11px}.uce-align-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.uce-align-grid button,.uce-nudge button{min-height:37px;border:1px solid #dce5f8;border-radius:10px;background:#f5f8ff;color:#6e87bc;font-size:11px;padding:5px}.uce-align-grid button:nth-last-child(-n+2){grid-column:span 1}.uce-nudge{display:grid;grid-template-columns:minmax(70px,1fr) repeat(4,35px);gap:6px;align-items:end;margin-top:15px}.uce-nudge label>span{font-size:10px}.uce-nudge input{height:37px}.uce-nudge button{font-size:17px}
#ucSelection.uce-locked{border-style:dashed;border-color:#aca9b9;cursor:default}#ucSelection.uce-locked .uce-handle{display:none}
#ucMultiSelection{position:absolute;inset:0;z-index:19;pointer-events:none}#ucMultiSelection>div{position:absolute;border:1px dashed #8274c7}
#ucCenterGuide{position:absolute;inset:0;z-index:12;pointer-events:none}#ucCenterGuide:before,#ucCenterGuide:after{content:'';position:absolute;background:#788be788}#ucCenterGuide:before{width:1px;height:100%;left:50%}#ucCenterGuide:after{height:1px;width:100%;top:50%}
#ucLayerList{max-height:320px;overflow-y:auto;overscroll-behavior:contain}
