/* KREVIXA native photo editor, v29 */
.ke-header{display:flex;justify-content:space-between;align-items:center;gap:1.5rem;margin:0 0 1.3rem}.ke-header h1{font-size:clamp(1.8rem,3.7vw,3rem);line-height:1.1;margin:.4rem 0}.ke-header p{max-width:720px;color:#c8bddc}.ke-header .eyebrow{color:#ce83ff}.ke-label{font-weight:800;font-size:.69rem;letter-spacing:.07em;color:#bcaaf8;background:rgba(115,67,246,.15);border:1px solid #5d4b8b;border-radius:20px;padding:.65rem;white-space:nowrap}
.ke-layout{display:grid;grid-template-columns:minmax(230px,295px) minmax(310px,1fr) minmax(240px,290px);gap:14px;align-items:start;padding-bottom:30px}.ke-tools,.ke-preview-panel,.ke-ai-panel{background:linear-gradient(145deg,rgba(32,24,62,.98),rgba(11,9,32,.99));border:1px solid rgba(162,128,246,.38);border-radius:20px;min-width:0;padding:17px;color:#f4f0ff;box-shadow:0 10px 45px #04031760}.ke-tools h2,.ke-ai-panel h2{font-size:.92rem;margin:20px 0 11px;color:#fff;border-bottom:1px solid #51456e;padding-bottom:8px}.ke-tools h2:first-child,.ke-ai-panel h2:first-child{margin-top:2px}.ke-layout button{font:inherit;cursor:pointer;border-radius:10px;border:1px solid #7263ad;background:#251d46;color:white;padding:10px 11px;transition:background .16s ease}.ke-layout button:hover{background:#473574}.ke-layout button:focus-visible,.ke-drop:focus-visible{outline:3px solid #b991ff;outline-offset:2px}.ke-layout button:disabled{opacity:.52;cursor:wait}.ke-primary,.ke-layout button.ke-primary{border-color:#bf71ff;background:linear-gradient(120deg,#9e19ed,#436dff);font-weight:750}.ke-layout label{display:flex;flex-direction:column;gap:6px;margin:12px 0;font-size:.78rem;color:#d8d2ed}.ke-layout select,.ke-layout input:not([type=range]):not([type=color]),.ke-layout textarea{border:1px solid #6f5c99;border-radius:9px;background:#14102b;color:#fff;padding:9px;font-size:.86rem;max-width:100%;width:100%;font:inherit}.ke-layout input[type=range]{accent-color:#a56aff;width:100%}.ke-layout input[type=color]{min-height:38px;width:65px;cursor:pointer}.ke-layout output{font-size:.71rem;color:#a6d7ff}.ke-line{display:flex;gap:8px;flex-wrap:wrap;margin:9px 0}.ke-line>button{flex:1;min-width:0}.ke-full{width:100%;margin-top:8px}.ke-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:6px}.ke-toolbar button{font-size:.74rem;padding:9px 6px}.ke-toolbar button.active{background:#6439e2;border-color:#d2b0ff}.ke-drop{border:1.5px dashed #8d73e1;border-radius:13px;padding:19px 12px;text-align:center;display:flex;flex-direction:column;gap:6px;cursor:pointer;background:#30205075}.ke-drop strong{color:white}.ke-drop span{font-size:.72rem;color:#b5a6d2}.ke-drop.ke-over,.ke-stage.ke-over{box-shadow:inset 0 0 0 3px #a87aff;background:#443162}.ke-tip{font-size:.73rem;line-height:1.45;color:#aaa0bd;margin:8px 0}.ke-preview-head{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:.8rem;color:#dcd5ed;margin-bottom:12px}.ke-preview-head span{color:#ae9fd2}.ke-stage{min-height:390px;background-color:#ececec;background-image:linear-gradient(45deg,#cdd0d4 25%,transparent 25%),linear-gradient(-45deg,#cdd0d4 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#cdd0d4 75%),linear-gradient(-45deg,transparent 75%,#cdd0d4 75%);background-size:28px 28px;background-position:0 0,0 14px,14px -14px,-14px 0px;border:1px solid #675585;border-radius:14px;display:flex;justify-content:center;align-items:center;overflow:hidden;padding:10px}.ke-canvas-stack{display:grid;position:relative;max-height:610px;margin:auto;align-items:center;justify-items:center}.ke-canvas-stack canvas{grid-area:1/1;width:100%;height:100%;min-width:0;min-height:0;object-fit:contain;display:block}.ke-canvas-stack #keOverlay{touch-action:none;cursor:grab;z-index:2}.ke-empty{display:flex;min-height:355px;align-items:center;justify-content:center;flex-direction:column;text-align:center;color:#392c60;gap:8px}.ke-empty span{font-size:4rem;color:#7040d2}.ke-empty p{font-size:.79rem;max-width:280px}.ke-empty button{color:white}.ke-preview-foot{display:flex;justify-content:space-between;font-size:.75rem;gap:15px;margin:14px 0;color:#b9d9ff}.ke-error{color:#ffb3c0!important}.ke-export,.ke-publish{border-top:1px solid #54426c;padding-top:13px;margin-top:12px}.ke-export>.ke-line button,.ke-publish>.ke-line button{font-size:.78rem}.ke-publish h3{font-size:.88rem;margin:5px 0}.ke-ai-panel>p{color:#b9aecf;font-size:.83rem;line-height:1.5}.ke-ai-panel textarea{resize:vertical;min-height:95px}.ke-presets{display:flex;flex-wrap:wrap;gap:7px}.ke-presets button{font-size:.72rem;line-height:1.3}.ke-ai-cost{padding:11px 12px;background:#3b2136;border:1px solid #b06577;border-radius:12px;margin:13px 0}.ke-ai-cost strong{font-size:.85rem;color:#fff}.ke-ai-cost p{font-size:.73rem;color:#ead0d5;margin:5px 0 0;line-height:1.5}
@media(max-width:1330px){.ke-layout{grid-template-columns:minmax(220px,320px) minmax(320px,1fr)}.ke-ai-panel{grid-column:1/-1}.ke-header .ke-label{white-space:normal}}
@media(max-width:760px){.ke-header{display:block}.ke-label{display:inline-block;margin:9px 0}.ke-layout{display:flex;flex-direction:column;gap:12px}.ke-layout>*{width:100%}.ke-preview-panel{order:0}.ke-tools{order:1}.ke-ai-panel{order:2}.ke-stage{min-height:280px}.ke-canvas-stack{max-height:520px}.ke-toolbar{grid-template-columns:1fr 1fr}.ke-export .ke-line>button,.ke-publish .ke-line>button{flex:1 1 45%}}
.ke-empty.hidden,.ke-canvas-stack.hidden{display:none!important}

/* v29.1 clear/replace controls */
.ke-layout button.ke-remove-photo{background:#381d39;border-color:#a66383;color:#ffe4ef}
.ke-layout button.ke-remove-photo:disabled{opacity:.42;cursor:not-allowed}
