/* REGRET Creator Pro – self-contained premium UI, existing editor untouched */
.rgcp-entry{max-width:1180px;margin:12px auto 24px;padding:17px 19px;display:flex;align-items:center;gap:15px;background:linear-gradient(112deg,rgba(63,19,91,.87),rgba(17,9,29,.92));border:1px solid rgba(228,70,234,.5);border-radius:15px;box-shadow:0 12px 35px rgba(0,0,0,.2),inset 0 0 35px rgba(231,45,255,.065);box-sizing:border-box;color:#fff;font-family:Inter,Arial,sans-serif}
.rgcp-entry-mark{width:53px;height:53px;display:grid;place-items:center;flex:none;border-radius:14px;background:linear-gradient(135deg,#a226c5,#37146f);box-shadow:0 0 20px #ac30e45a;color:#e8c1ff;font-size:30px}
.rgcp-entry-text{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}.rgcp-entry-text b{font-size:15px;letter-spacing:.045em;font-weight:900}.rgcp-entry-text span{font-size:12px;color:#c7b2d7}
#rgcp-launch{border:1px solid rgba(220,255,124,.8);border-radius:9px;padding:13px 15px;font-weight:900;font-size:12px;letter-spacing:.04em;white-space:nowrap;color:#10100d;background:linear-gradient(135deg,#d9ff77,#a8ff32);cursor:pointer;box-shadow:0 5px 20px #baff3240}#rgcp-launch:hover{filter:brightness(1.09);transform:translateY(-1px)}
#rgcp-overlay{position:fixed;inset:0;z-index:2147482000;background:rgba(5,2,12,.94);color:#f9f2ff;font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;overscroll-behavior:contain}#rgcp-overlay *,#rgcp-overlay *:before,#rgcp-overlay *:after{box-sizing:border-box}#rgcp-overlay button,#rgcp-overlay input,#rgcp-overlay select,#rgcp-overlay textarea{font:inherit}#rgcp-overlay button{cursor:pointer}#rgcp-overlay button:focus-visible,#rgcp-overlay input:focus-visible,#rgcp-overlay textarea:focus-visible,#rgcp-overlay select:focus-visible{outline:2px solid #baff32;outline-offset:3px}#rgcp-overlay button[disabled]{opacity:.35;cursor:not-allowed}
.rgcp-shell{height:100%;display:flex;flex-direction:column;overflow:hidden;background:radial-gradient(circle at 54% 40%,#241034 0%,#0d0716 55%,#09040d 100%)}.rgcp-head{flex:0 0 auto;min-height:75px;display:flex;align-items:center;justify-content:space-between;padding:11px 27px;background:linear-gradient(90deg,rgba(22,8,36,.95),rgba(10,4,19,.97));border-bottom:1px solid #64256d;gap:15px}.rgcp-brand{display:flex;align-items:center;gap:12px}.rgcp-symbol{font-size:26px;display:grid;place-items:center;width:45px;height:45px;background:#49146a;border:1px solid #bc31de;border-radius:12px;color:#f793ff;box-shadow:0 0 16px #a600ff56}.rgcp-overline{font-size:9px;font-weight:800;letter-spacing:.17em;color:#e89afa}.rgcp-brand strong{font-style:italic;letter-spacing:-.03em;font-size:25px;font-weight:1000}.rgcp-brand strong em{font-style:normal;color:#e43ee9}.rgcp-head-actions{display:flex;gap:18px;align-items:center}.rgcp-privacy{font-size:10px;font-weight:800;color:#b9ff40;letter-spacing:.08em}.rgcp-close{height:40px;width:40px;border-radius:10px!important;border:1px solid #6c3a78!important;background:#24132f!important;color:#fff!important;font-size:19px!important}
.rgcp-app{flex:1;min-height:0;display:grid;grid-template-columns:264px minmax(0,1fr) 275px;gap:0}.rgcp-side{overflow-y:auto;min-width:0;background:#130b20;border-right:1px solid #493057;padding:20px 17px;scrollbar-color:#64357a transparent}.rgcp-right{border-right:0;border-left:1px solid #493057}.rgcp-section{padding:0 0 19px;margin:0 0 20px;border-bottom:1px solid #352443}.rgcp-section:last-child{border-bottom:0}.rgcp-section-title{display:flex;align-items:center;gap:8px;color:#f2d5f9;font-size:10px;font-weight:900;letter-spacing:.12em;margin-bottom:12px}.rgcp-section-title span{font-size:10px;color:#baff32;letter-spacing:0;border:1px solid #5f6536;border-radius:5px;padding:3px 4px}
.rgcp-templates{display:grid;grid-template-columns:1fr 1fr;gap:9px}.rgcp-template{display:flex;min-width:0;flex-direction:column;gap:6px;padding:6px!important;border-radius:10px!important;border:1px solid #50365e!important;background:#1a1025!important;color:#ded0e5!important;text-align:left!important;font-size:10px!important}.rgcp-template.on{border-color:#baff32!important;box-shadow:inset 0 0 0 1px #baff32,0 0 13px #acff1d22!important}.rgcp-tpreview{position:relative;display:grid;place-items:center;width:100%;height:64px;border-radius:6px;background:linear-gradient(130deg,#0b0615,var(--tpl));overflow:hidden}.rgcp-tpreview i{position:absolute;width:75px;height:75px;right:-20px;top:-35px;border-radius:50%;background:#c944e4;opacity:.22;filter:blur(13px)}.rgcp-tpreview b{font-weight:1000;font-size:30px;font-style:italic;color:white;text-shadow:0 0 15px #fd55f5}.rgcp-template>span:last-child{font-size:10px;font-weight:700;padding:3px 2px}
.rgcp-format-row{display:flex;gap:6px}.rgcp-format-row button{flex:1;min-width:0;padding:10px 0!important;border-radius:7px!important;border:1px solid #533966!important;background:#20132d!important;color:#ddd0e9!important;font-weight:900!important;font-size:12px!important}.rgcp-format-row button.on{color:#14130e!important;border-color:#baff32!important;background:#c8fc76!important}.rgcp-format-row small{font-size:9px;font-weight:600;opacity:.7}
.rgcp-adds{display:grid;grid-template-columns:1fr 1fr;gap:7px}.rgcp-adds button{min-height:55px;display:flex;align-items:center;gap:7px;border-radius:8px!important;background:#21132f!important;color:#eee1f4!important;border:1px solid #503960!important;text-align:left!important;padding:8px!important;font-weight:700!important;font-size:11px!important}.rgcp-adds button:hover{border-color:#a748cd!important}.rgcp-adds button span{width:27px;height:27px;display:grid;place-items:center;flex:none;background:#5d2476;border-radius:7px;color:#f6afff;font-size:17px}.rgcp-small{font-size:11px;line-height:1.55;color:#b8a5c3;margin:10px 0 0}
.rgcp-center{min-width:0;min-height:0;display:flex;flex-direction:column;align-items:stretch;padding:18px 22px 10px;background:radial-gradient(ellipse at 50% 45%,rgba(111,35,135,.19),transparent 65%)}.rgcp-stage-head{display:flex;align-items:end;justify-content:space-between;gap:10px;padding-bottom:12px}.rgcp-stage-head label{font-size:10px;display:block;font-weight:900;color:#bda9c9;letter-spacing:.1em;margin-bottom:6px}.rgcp-stage-head input{background:#1b1028;color:#fff;border:1px solid #604172;border-radius:7px;padding:8px 11px;font-weight:800;width:min(320px,100%);font-size:12px}.rgcp-help{color:#a7ff41;letter-spacing:.08em;font-size:9px;font-weight:900;text-align:right}.rgcp-stage-wrap{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:7px;border-radius:12px;background:linear-gradient(125deg,#140a20,#1a0e29);border:1px solid #3c2549;box-shadow:inset 0 0 34px #06000d9e}#rgcp-canvas{display:block;width:auto!important;height:auto!important;max-width:100%;max-height:100%;min-height:0;border-radius:4px;box-shadow:0 20px 50px #000b,0 0 0 1px #bb56d1;touch-action:none;cursor:grab}#rgcp-canvas:active{cursor:grabbing}.rgcp-stage-foot{display:flex;justify-content:space-between;gap:8px;padding:10px 2px 0;color:#8f7a9e;letter-spacing:.12em;font-size:9px;font-weight:800}
.rgcp-layers{display:flex;flex-direction:column;gap:6px}.rgcp-layer{width:100%;display:flex;align-items:center;gap:9px;padding:9px!important;border:1px solid #493158!important;background:#1c1028!important;color:#ece3f2!important;border-radius:8px!important;font-size:11px!important;text-align:left!important;min-height:40px}.rgcp-layer.selected{border-color:#baff32!important;background:#263022!important}.rgcp-layer span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rgcp-layer-icon{flex:none;display:grid;place-items:center;border-radius:6px;width:23px;height:23px;color:#eaa7f9;font-size:15px;background:#522764}.rgcp-empty{font-size:12px;line-height:1.7;color:#bcaacb;padding:12px;background:#20142d;border:1px dashed #634377;border-radius:8px}
.rgcp-field{margin:0 0 12px}.rgcp-field label{font-size:11px;font-weight:800;color:#d9c8e3;display:block;margin-bottom:6px}.rgcp-field textarea,.rgcp-field select{display:block;width:100%;border:1px solid #553664!important;background:#0d0717!important;color:#fff!important;border-radius:7px!important;padding:10px!important;font-size:12px!important;resize:vertical;min-height:35px}.rgcp-field input[type=range]{width:100%;accent-color:#baff32;cursor:pointer}.rgcp-swatches{display:flex;gap:4px;flex-wrap:wrap}.rgcp-swatches button{width:27px;height:27px;border:2px solid #513261;border-radius:50%;background:var(--swatch);padding:0}.rgcp-swatches button.on{outline:2px solid #baff32;outline-offset:1px}.rgcp-layer-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.rgcp-layer-actions button{border:1px solid #654575!important;background:#231633!important;color:#e9d8f4!important;border-radius:6px!important;padding:9px 5px!important;font-size:10px!important;font-weight:800!important}.rgcp-layer-actions button.danger{color:#ff9c9c!important}.rgcp-stickers{display:grid;grid-template-columns:repeat(6,1fr);gap:4px}.rgcp-stickers button{font-size:20px!important;background:#21132f!important;border:1px solid #58346a!important;border-radius:6px!important;padding:6px 0!important}
.rgcp-footer{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;min-height:71px;background:#11091b;border-top:1px solid #593165;padding:13px 20px;gap:12px}.rgcp-foot-left,.rgcp-foot-right{display:flex;align-items:center;gap:8px}.rgcp-footer button{font-size:11px!important;font-weight:900!important;letter-spacing:.02em;white-space:nowrap;padding:11px 12px!important;border-radius:8px!important;background:#24132f!important;color:#e9dcf1!important;border:1px solid #664574!important}.rgcp-footer button.rgcp-danger{color:#ffa7ba!important}.rgcp-footer .rgcp-export-secondary{color:#fff!important;border-color:#754497!important}.rgcp-footer .rgcp-export-main{background:#baff32!important;color:#13150e!important;border-color:#baff32!important;box-shadow:0 0 17px #baff3240}.rgcp-foot-right span{font-size:9px;white-space:nowrap;letter-spacing:.08em;color:#baa6c6;font-weight:800;margin-right:5px}.rgcp-toast{position:fixed;right:24px;bottom:90px;max-width:350px;background:#baff32;color:#171016;padding:12px 18px;font-size:12px;font-weight:900;border-radius:10px;box-shadow:0 8px 28px #0007;opacity:0;transform:translateY(12px);pointer-events:none;transition:opacity .2s,transform .2s}.rgcp-toast.visible{opacity:1;transform:translateY(0)}
@media (max-width:1150px){.rgcp-app{grid-template-columns:215px minmax(0,1fr) 225px}.rgcp-side{padding:14px 11px}.rgcp-center{padding:14px}.rgcp-templates{gap:5px}.rgcp-foot-right span{display:none}}
@media (max-width:790px){.rgcp-head{min-height:65px;padding:9px 15px}.rgcp-privacy{display:none}.rgcp-brand strong{font-size:21px}.rgcp-app{display:flex;flex-direction:column;overflow-y:auto}.rgcp-center{order:0;min-height:490px;padding:12px}.rgcp-stage-wrap{min-height:350px}.rgcp-side{order:1;overflow:visible;border:0;border-top:1px solid #473154}.rgcp-right{order:2}.rgcp-templates{grid-template-columns:repeat(5,minmax(110px,1fr));overflow-x:auto}.rgcp-adds{grid-template-columns:repeat(4,1fr)}.rgcp-stickers{grid-template-columns:repeat(12,1fr)}.rgcp-section{margin-bottom:14px;padding-bottom:13px}.rgcp-footer{flex-wrap:wrap;padding:9px;min-height:70px}.rgcp-foot-left,.rgcp-foot-right{width:100%;justify-content:center}.rgcp-footer button{font-size:10px!important;padding:9px!important}.rgcp-entry{margin:12px 10px 20px}.rgcp-entry-text b{font-size:12px}.rgcp-entry-text span{font-size:10px}}
@media(max-width:520px){.rgcp-entry{flex-wrap:wrap;gap:10px}.rgcp-entry-mark{width:40px;height:40px}.rgcp-entry-text{flex-basis:calc(100% - 60px)}#rgcp-launch{width:100%}.rgcp-stage-head{align-items:flex-start}.rgcp-stage-head input{max-width:210px}.rgcp-help{font-size:8px}.rgcp-center{min-height:410px}.rgcp-stage-wrap{min-height:280px}.rgcp-adds{grid-template-columns:1fr 1fr}.rgcp-stickers{grid-template-columns:repeat(6,1fr)}.rgcp-foot-left,.rgcp-foot-right{gap:4px}.rgcp-footer button{padding:8px 6px!important}.rgcp-stage-foot{font-size:8px}.rgcp-brand strong{font-size:18px}}
@media(prefers-reduced-motion:reduce){.rgcp-entry,#rgcp-launch,.rgcp-toast{transition:none!important}}
