/* Brintage R42 — Editor libre gratuito */
#createpost .cp-free-entry{display:none;border:1px solid #d9e8f7;background:linear-gradient(135deg,#f8fcff,#eef8ff);border-radius:14px;min-height:58px;padding:8px 12px;margin:8px 0 6px;box-sizing:border-box;width:100%;align-items:center;gap:11px;text-align:left;color:#15324e;cursor:pointer;box-shadow:0 5px 16px rgba(34,92,148,.08)}
#createpost.cp-editor-step:not(.cp-free-mode) .cp-free-entry{display:flex!important}
#createpost .cp-free-entry-icon{width:38px;height:38px;flex:0 0 38px;border-radius:11px;background:#dff4ff;position:relative;box-shadow:inset 0 0 0 1px #c9eafa}
#createpost .cp-free-entry-icon:before{content:"";position:absolute;left:8px;top:8px;width:10px;height:10px;border:2px solid #3182ce;border-radius:2px;box-sizing:border-box}
#createpost .cp-free-entry-icon:after{content:"";position:absolute;right:7px;bottom:7px;width:14px;height:14px;border:2px solid #32b5e7;border-radius:50%;box-sizing:border-box}
#createpost .cp-free-entry-copy{display:flex;flex:1 1 auto;min-width:0;flex-direction:column;line-height:1.16}
#createpost .cp-free-entry-copy strong{font-size:14px;font-weight:700;color:#193b5b}
#createpost .cp-free-entry-copy small{font-size:12px;color:#6f8498;margin-top:3px}
#createpost .cp-free-badge{font-size:11px;font-weight:700;color:#1684bd;background:#e1f7ff;border-radius:999px;padding:5px 9px;white-space:nowrap}
#createpost .cp-free-entry-arrow{font-size:24px;color:#76a4c7;line-height:1}

#createpost .cp-free-controls{display:none!important;border:1px solid #dfeaf4;background:#fff;border-radius:14px;padding:9px 11px 10px;margin:8px 0;box-sizing:border-box;box-shadow:0 5px 16px rgba(34,72,111,.08)}
#createpost.cp-free-mode .cp-free-controls{display:block!important}
#createpost.cp-free-mode .cp-free-entry,#createpost.cp-free-mode .cp-designs-nav,#createpost.cp-free-mode .cp-emotive-categories,#createpost.cp-free-mode .cp-classic-color-menu,#createpost.cp-free-mode .cp-design-bank,#createpost.cp-free-mode .cp-emotive-bank,#createpost.cp-free-mode .cp-filter-bank{display:none!important}
/* R42: la barra inferior permanece a la vista en Diseño libre. Animación y T
   siguen disponibles; Filtros, Clásicos y Temáticos se ven bloqueados. */
#createpost.cp-free-mode .cp-collage-tabs{display:flex!important}
#createpost.cp-free-mode .cp-filter-toggle,#createpost.cp-free-mode .cp-collage-tab,#createpost.cp-free-mode .cp-emotive-menu-toggle{
  color:#9aa7b5!important;background:#f1f4f7!important;box-shadow:none!important;cursor:not-allowed!important;pointer-events:none!important;opacity:.62!important;filter:grayscale(1)!important
}
#createpost.cp-free-mode .cp-filter-toggle.is-active,#createpost.cp-free-mode .cp-collage-tab.is-active{box-shadow:none!important;color:#9aa7b5!important}
#createpost.cp-free-mode .cp-filter-icon{opacity:.55!important;filter:grayscale(1)!important}
#createpost.cp-free-mode .cp-designs-nav .cp-arrow{display:none!important}
#createpost.cp-free-mode .cp-photo-tools,#createpost.cp-free-mode .cp-static-summary{display:none!important}
#createpost.cp-free-mode.cp-free-ready .cp-photo-tools{display:flex!important;justify-content:flex-end!important}
#createpost.cp-free-mode .cp-photo-tools .cp-photo-tools-hint{display:none!important}
#createpost.cp-free-mode .cp-photo-tools .cp-rotation-control{display:grid!important;pointer-events:auto!important}
#createpost .cp-free-animation-trigger,#createpost.cp-free-mode .cp-free-animation-trigger{display:none!important}
#createpost .cp-free-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 7px;gap:10px}
#createpost .cp-free-head strong{font-size:14px;color:#173a59}
#createpost .cp-free-back{border:0;background:#edf7ff;color:#2785c4;border-radius:9px;padding:7px 10px;font:inherit;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}
#createpost .cp-free-section{display:flex;align-items:center;gap:9px;min-width:0;margin-top:7px}
#createpost .cp-free-section-label{flex:0 0 55px;font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#6b8195}
#createpost .cp-free-color-list{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;flex:1 1 auto;padding:2px 0}
#createpost .cp-free-color-list::-webkit-scrollbar{display:none}
#createpost .cp-free-color{width:28px;height:28px;flex:0 0 28px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #d7e1eb;cursor:pointer;position:relative}
#createpost .cp-free-color.is-active:after{content:"";position:absolute;inset:-4px;border:2px solid #2f84f6;border-radius:50%}
#createpost .cp-free-bg-image{width:42px;height:30px;flex:0 0 42px;border:1px solid #cfe1f0;border-radius:8px;background:#f5fbff;position:relative;cursor:pointer}
#createpost .cp-free-bg-image:before{content:"";position:absolute;width:20px;height:15px;left:8px;top:7px;border:1.8px solid #438abe;border-radius:3px;box-sizing:border-box;background:linear-gradient(145deg,transparent 48%,#b9ddf1 49% 62%,transparent 63%)}
#createpost .cp-free-bg-image:after{content:"+";position:absolute;right:3px;top:-3px;width:15px;height:15px;border-radius:50%;background:#2f84f6;color:#fff;font:bold 13px/15px Arial;text-align:center;box-shadow:0 1px 4px rgba(47,132,246,.25)}
#createpost .cp-free-bg-image.is-active{box-shadow:0 0 0 2px #2f84f6}
#createpost.cp-free-bg-processing .cp-free-bg-image{opacity:.55;pointer-events:none}

#createpost .cp-free-shape-list{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#createpost .cp-free-shape-button{width:42px;height:34px;border:1px solid #d3e2ef;border-radius:9px;background:#f8fbfe;cursor:pointer;position:relative;color:#3689c2}
#createpost .cp-free-shape-button:hover{background:#edf8ff;border-color:#b8d9ee}
#createpost .cp-free-shape-button:disabled,#createpost.cp-free-max-shapes .cp-free-shape-button{color:#9aa9b6;background:#e9eef3;border-color:#d9e0e7;box-shadow:none;cursor:not-allowed;opacity:.72}
#createpost .cp-free-shape-button span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:block}
#createpost .cp-free-shape-button[data-free-shape="rect"] span{width:21px;height:15px;border:2px solid currentColor;border-radius:6px}
#createpost .cp-free-shape-button[data-free-shape="square"] span{width:18px;height:18px;border:2px solid currentColor;border-radius:4px}
#createpost .cp-free-shape-button[data-free-shape="circle"] span{width:19px;height:19px;border:2px solid currentColor;border-radius:50%}
#createpost .cp-free-shape-button[data-free-shape="oval"] span{width:23px;height:15px;border:2px solid currentColor;border-radius:50%}
#createpost .cp-free-shape-button[data-free-shape="heart"] span:before{content:"♥";font-size:25px;line-height:1;color:#47a3d5}
#createpost .cp-free-shape-button[data-free-shape="hex"] span{width:23px;height:20px;background:currentColor;clip-path:polygon(25% 5%,75% 5%,100% 50%,75% 95%,25% 95%,0 50%)}
#createpost .cp-free-shape-button[data-free-shape="hex"] span:after{content:"";position:absolute;inset:2px;background:#f8fbfe;clip-path:inherit}
#createpost .cp-free-shape-button[data-free-shape="diamond"] span{width:18px;height:18px;border:2px solid currentColor;transform:translate(-50%,-50%) rotate(45deg);border-radius:3px}
#createpost .cp-free-shape-button[data-free-shape="triangle"] span{width:23px;height:21px;background:currentColor;clip-path:polygon(50% 2%,98% 96%,2% 96%)}
#createpost .cp-free-shape-button[data-free-shape="triangle"] span:after{content:"";position:absolute;inset:3px 3px 2px;background:#f8fbfe;clip-path:inherit}

#createpost .cp-free-style-group{border-top:1px solid #edf3f8;margin-top:8px;padding-top:6px}
#createpost .cp-free-border-content{display:flex;flex:1 1 auto;min-width:0;flex-direction:column;gap:7px}
#createpost .cp-free-border-list,#createpost .cp-free-shadow-list{display:flex;gap:7px;flex-wrap:wrap;flex:1 1 auto}
#createpost .cp-free-border-option,#createpost .cp-free-shadow-option{border:1px solid #d5e5f2;background:#f8fbfe;color:#316a95;border-radius:999px;padding:7px 10px;font:inherit;font-size:12px;font-weight:700;cursor:pointer;transition:all .18s ease}
#createpost .cp-free-border-option:hover,#createpost .cp-free-shadow-option:hover{background:#eef8ff;border-color:#b9d9ee}
#createpost .cp-free-border-option.is-active,#createpost .cp-free-shadow-option.is-active{background:#2f84f6;border-color:#2f84f6;color:#fff;box-shadow:0 5px 12px rgba(47,132,246,.24)}
#createpost .cp-free-border-color-row{display:flex;align-items:center;gap:8px;min-width:0}
#createpost .cp-free-border-color-row small{flex:0 0 auto;color:#71869a;font-size:11px;font-weight:700}
#createpost .cp-free-border-colors{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:2px;min-width:0}
#createpost .cp-free-border-colors::-webkit-scrollbar{display:none}
#createpost .cp-free-border-color{width:25px;height:25px;flex:0 0 25px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #d7e1eb;cursor:pointer;position:relative}
#createpost .cp-free-border-color.is-active:after{content:"";position:absolute;inset:-4px;border:2px solid #2f84f6;border-radius:50%}
#createpost .cp-free-motion-switch{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:1 1 auto;min-height:36px;border:1px solid #dbe7f1;background:#f8fbfe;border-radius:12px;padding:0 10px}
#createpost .cp-free-motion-copy{font-size:12px;font-weight:700;color:#295f87}
#createpost .cp-free-floating-toggle,#createpost .cp-free-auto-rotation-toggle{position:absolute;opacity:0;pointer-events:none}
#createpost .cp-free-motion-ui{width:42px;height:24px;border-radius:999px;background:#d9e6ef;position:relative;flex:0 0 42px;transition:background .18s ease}
#createpost .cp-free-motion-ui span{position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(12,43,68,.18);transition:transform .18s ease}
#createpost .cp-free-floating-toggle:checked + .cp-free-motion-ui,#createpost .cp-free-auto-rotation-toggle:checked + .cp-free-motion-ui{background:#2f84f6}
#createpost .cp-free-floating-toggle:checked + .cp-free-motion-ui span,#createpost .cp-free-auto-rotation-toggle:checked + .cp-free-motion-ui span{transform:translateX(18px)}
#createpost .cp-free-auto-rotation-toggle:disabled + .cp-free-motion-ui{background:#d8dfe6;opacity:.62}
#createpost .cp-free-ready-note{font-size:11px;color:#7a8ea0;line-height:1.35;margin-top:8px;padding-left:64px}
#createpost .cp-free-photo-help{display:none;margin:7px 0 0 64px;padding-top:6px;border-top:1px solid #edf3f8;color:#73879b;font-size:10.5px;font-weight:600;line-height:1.3}
#createpost.cp-free-mode.cp-free-ready .cp-free-photo-help{display:block}

#createpost .cl-collage.cp-free-canvas-host{background:#eaf7ff;overflow:hidden;touch-action:none}
#createpost .cp-free-stage{position:absolute;inset:0;overflow:hidden;background:#eaf7ff center/cover no-repeat;touch-action:none;user-select:none;-webkit-user-select:none}
#createpost .cp-free-empty-hint{position:absolute;left:50%;top:50%;z-index:0;width:min(76%,330px);transform:translate(-50%,-50%);padding:13px 16px;border:1px dashed rgba(68,139,194,.38);border-radius:15px;background:rgba(255,255,255,.58);color:#5d7f98;text-align:center;font:700 14px/1.35 Arial,sans-serif;pointer-events:none;box-sizing:border-box}
#createpost .cp-free-stage:not(.is-empty) .cp-free-empty-hint{display:none}
#createpost .cp-free-shape{position:absolute;overflow:visible;touch-action:none;box-sizing:border-box;transform:rotate(var(--cp-free-angle,0deg));transform-origin:center center}
#createpost .cp-free-stage.is-floating .cp-free-shape{animation:cpFreeFloat var(--cp-free-float-duration,5s) ease-in-out infinite;animation-delay:var(--cp-free-float-delay,0s)}
#createpost .cp-free-shape-mask{position:absolute;inset:0;overflow:hidden;touch-action:none;background:rgba(255,255,255,.34)}
#createpost .cp-free-shape-border{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:3}
#createpost .cp-free-border-path{fill:none;stroke:var(--cp-free-border-color,#fff);stroke-width:0}
#createpost .cp-free-shape[data-border="thin"] .cp-free-border-path{stroke-width:2px}
#createpost .cp-free-shape[data-border="medium"] .cp-free-border-path{stroke-width:4px}
#createpost .cp-free-shape[data-border="thick"] .cp-free-border-path{stroke-width:6px}
#createpost .cp-free-shape[data-shadow="light"] .cp-free-shape-mask,#createpost .cp-free-shape[data-shadow="light"] .cp-free-shape-border{filter:drop-shadow(0 4px 8px rgba(255,255,255,.88))}
#createpost .cp-free-shape[data-shadow="gray"] .cp-free-shape-mask,#createpost .cp-free-shape[data-shadow="gray"] .cp-free-shape-border{filter:drop-shadow(0 6px 10px rgba(71,85,105,.30))}
#createpost .cp-free-shape[data-shadow="dark"] .cp-free-shape-mask,#createpost .cp-free-shape[data-shadow="dark"] .cp-free-shape-border{filter:drop-shadow(0 8px 14px rgba(15,23,42,.42))}
#createpost .cp-free-shape.is-selected .cp-free-shape-mask{box-shadow:inset 0 0 0 2px rgba(47,132,246,.95)}
#createpost .cp-free-shape-photo{position:absolute;max-width:none!important;max-height:none!important;object-fit:unset!important;display:none;user-select:none;-webkit-user-drag:none;touch-action:none;z-index:1}
#createpost .cp-free-rotation-next{z-index:2!important;pointer-events:none}
#createpost .cp-free-shape-move,#createpost .cp-free-shape-delete,#createpost .cp-free-shape-change,#createpost .cp-free-shape-resize,#createpost .cp-free-shape-rotate,#createpost .cp-free-angle{display:none;position:absolute;z-index:6;border:0;cursor:pointer;touch-action:none;box-shadow:0 2px 7px rgba(18,67,105,.20)}
#createpost .cp-free-shape.is-selected .cp-free-shape-move,#createpost .cp-free-shape.is-selected .cp-free-shape-delete,#createpost .cp-free-shape.is-selected .cp-free-shape-change,#createpost .cp-free-shape.is-selected .cp-free-shape-resize,#createpost .cp-free-shape.is-selected .cp-free-shape-rotate,#createpost .cp-free-shape.is-selected .cp-free-angle{display:block}
#createpost .cp-free-shape-move{left:5px;top:5px;width:26px;height:26px;border-radius:50%;background:#fff}
#createpost .cp-free-shape-move:before,#createpost .cp-free-shape-move:after{content:"";position:absolute;background:#2f84f6;left:7px;right:7px;top:12px;height:2px}
#createpost .cp-free-shape-move:after{transform:rotate(90deg)}
#createpost .cp-free-shape-delete{right:5px;top:5px;width:25px;height:25px;border-radius:50%;background:#fff;color:#e05059;font:bold 18px/23px Arial;text-align:center;padding:0}
#createpost .cp-free-shape-change{left:5px;bottom:5px;width:27px;height:27px;border-radius:8px;background:#fff}
#createpost .cp-free-shape-change:before{content:"";position:absolute;left:6px;top:7px;width:15px;height:12px;border:1.8px solid #2f84f6;border-radius:3px;box-sizing:border-box;background:linear-gradient(145deg,transparent 48%,#b9ddf1 49% 62%,transparent 63%)}
#createpost .cp-free-shape-resize{right:5px;bottom:5px;width:27px;height:27px;border-radius:8px;background:#2f84f6}
#createpost .cp-free-shape-resize:before{content:"";position:absolute;right:6px;bottom:6px;width:10px;height:10px;border-right:2px solid #fff;border-bottom:2px solid #fff}
#createpost .cp-free-shape-rotate{top:50%;width:30px;height:30px;margin-top:-15px;border-radius:50%;background:#fff;color:#2f84f6}
#createpost .cp-free-shape-rotate-left{left:-37px}
#createpost .cp-free-shape-rotate-right{right:-37px}
#createpost .cp-free-shape-rotate:before{content:"";position:absolute;left:7px;top:7px;width:14px;height:14px;border:2px solid currentColor;border-left-color:transparent;border-radius:50%;box-sizing:border-box}
#createpost .cp-free-shape-rotate:after{content:"";position:absolute;right:5px;top:5px;border-left:5px solid currentColor;border-top:3px solid transparent;border-bottom:3px solid transparent;transform:rotate(-35deg)}
#createpost .cp-free-shape-rotate-left{transform:scaleX(-1)}
#createpost .cp-free-angle{left:50%;bottom:-29px;transform:translateX(-50%);min-width:38px;padding:4px 7px;border-radius:999px;background:rgba(20,52,77,.86);color:#fff;text-align:center;font:700 10px/1 Arial,sans-serif;cursor:default;box-sizing:border-box}

.cp-free-photo-picker{position:fixed;inset:0;z-index:1000005;background:rgba(13,34,53,.52);display:flex;align-items:center;justify-content:center;padding:18px;box-sizing:border-box}
.cp-free-photo-card{width:min(520px,96vw);max-height:min(620px,78vh);overflow:hidden;background:#fff;border-radius:18px;box-shadow:0 20px 55px rgba(12,42,68,.26);display:flex;flex-direction:column}
.cp-free-photo-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 10px;border-bottom:1px solid #edf1f5}
.cp-free-photo-head>div{display:flex;flex-direction:column;min-width:0}
.cp-free-photo-head strong{font-size:15px;color:#153a58}.cp-free-photo-head small{font-size:12px;color:#7a8da0;margin-top:2px}
.cp-free-photo-close{width:32px;height:32px;border:0;border-radius:50%;background:#f1f5f8;color:#536b7f;font-size:21px;cursor:pointer}
.cp-free-photo-grid{padding:12px;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;overflow:auto}
.cp-free-photo-option{aspect-ratio:1/1;border:0;padding:0;border-radius:10px;overflow:hidden;background:#edf2f6;cursor:pointer}
.cp-free-photo-option img{width:100%;height:100%;display:block;object-fit:cover}

/* Compatibilidad legacy CU0: publicaciones antiguas que sí guardaban una miniatura aplanada.
   Los Diseños libres nuevos se reconstruyen desde free_design_data + fotos fuente. */
.cl-CU0-a{position:absolute!important;left:0!important;top:0!important;width:100%!important;height:100%!important}
.br-design-CU0 .cl-CU0-a,.br-design-CU0 .cl-CU0-a>.ig,.br-design-CU0 .cl-CU0-a>.imge{box-shadow:none!important}

/* R38: CU0 nuevo conserva figuras independientes después de publicar. */
.br-free-published{position:relative!important;overflow:hidden!important;background-repeat:no-repeat!important}
.br-free-published-shape{position:absolute;box-sizing:border-box;overflow:visible;transform:rotate(var(--br-free-angle,0deg));transform-origin:center center}
.br-free-published.is-floating .br-free-published-shape{animation:brPublishedFreeFloat var(--br-free-duration,5s) ease-in-out infinite;animation-delay:var(--br-free-delay,0s)}
.br-free-published-mask{position:absolute;inset:0;overflow:hidden;background:rgba(255,255,255,.24)}
.br-free-photo{position:absolute!important;display:block!important;max-width:none!important;max-height:none!important;object-fit:unset!important;margin:0!important;user-select:none;pointer-events:none;z-index:1}
.br-free-photo-next{z-index:2;opacity:0}
.br-free-published-border{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:3}
.br-free-published-border path{fill:none;stroke:var(--br-free-border,#fff);stroke-width:0;stroke-linecap:round;stroke-linejoin:round}
.br-free-published-shape[data-border="thin"] .br-free-published-border path{stroke-width:2px}
.br-free-published-shape[data-border="medium"] .br-free-published-border path{stroke-width:4px}
.br-free-published-shape[data-border="thick"] .br-free-published-border path{stroke-width:6px}
.br-free-published-shape[data-shadow="light"] .br-free-published-mask,.br-free-published-shape[data-shadow="light"] .br-free-published-border{filter:drop-shadow(0 4px 8px rgba(255,255,255,.88))}
.br-free-published-shape[data-shadow="gray"] .br-free-published-mask,.br-free-published-shape[data-shadow="gray"] .br-free-published-border{filter:drop-shadow(0 6px 10px rgba(71,85,105,.30))}
.br-free-published-shape[data-shadow="dark"] .br-free-published-mask,.br-free-published-shape[data-shadow="dark"] .br-free-published-border{filter:drop-shadow(0 8px 14px rgba(15,23,42,.42))}
.br-free-published>.br-collage-text-layer{z-index:20}
@keyframes brPublishedFreeFloat{0%{transform:translate3d(0,0,0) rotate(var(--br-free-angle,0deg))}25%{transform:translate3d(0,-4px,0) rotate(calc(var(--br-free-angle,0deg) - .7deg))}50%{transform:translate3d(0,2px,0) rotate(calc(var(--br-free-angle,0deg) + .7deg))}75%{transform:translate3d(0,-3px,0) rotate(calc(var(--br-free-angle,0deg) - .45deg))}100%{transform:translate3d(0,0,0) rotate(var(--br-free-angle,0deg))}}

@keyframes cpFreeFloat{
  0%{transform:translate3d(0,0,0) rotate(var(--cp-free-angle,0deg))}
  25%{transform:translate3d(0,-4px,0) rotate(calc(var(--cp-free-angle,0deg) - .7deg))}
  50%{transform:translate3d(0,2px,0) rotate(calc(var(--cp-free-angle,0deg) + .7deg))}
  75%{transform:translate3d(0,-3px,0) rotate(calc(var(--cp-free-angle,0deg) - .45deg))}
  100%{transform:translate3d(0,0,0) rotate(var(--cp-free-angle,0deg))}
}

@media(max-width:768px){
 #createpost .cp-free-entry{margin:5px 8px 4px;width:calc(100% - 16px);min-height:52px;border-radius:12px;padding:7px 10px}
 #createpost .cp-free-entry-icon{width:34px;height:34px;flex-basis:34px}.cp-free-entry-copy strong{font-size:13px!important}
 #createpost .cp-free-controls{margin:4px 8px 5px;border-radius:12px;padding:7px 9px 8px}
 #createpost .cp-free-head{margin-bottom:4px}
 #createpost .cp-free-section{margin-top:5px;gap:7px;align-items:flex-start;flex-wrap:wrap}
 #createpost .cp-free-section-label{flex-basis:48px;font-size:10px;padding-top:8px}
 #createpost .cp-free-color{width:25px;height:25px;flex-basis:25px}
 #createpost .cp-free-bg-image{width:39px;height:28px;flex-basis:39px}
 #createpost .cp-free-shape-button{width:39px;height:31px}
 #createpost .cp-free-border-option,#createpost .cp-free-shadow-option{font-size:11px;padding:7px 9px}
 #createpost .cp-free-motion-switch{width:100%}
 #createpost .cp-free-ready-note{padding-left:0;margin-top:6px}
 #createpost .cp-free-photo-help{margin-left:0;margin-top:5px;padding-top:5px;font-size:10px}
 .cp-free-photo-picker{align-items:flex-end;padding:0}
 .cp-free-photo-card{width:100%;max-height:70vh;border-radius:18px 18px 0 0;padding-bottom:max(8px,env(safe-area-inset-bottom))}
 .cp-free-photo-grid{grid-template-columns:repeat(4,1fr);gap:7px}
}

/* R40 — CU0 mini usa la escala REAL calculada desde el contenedor / 600.
   Posición y tamaño de figuras se recalculan en JS; aquí escalamos también
   las medidas visuales del texto que todavía están expresadas en píxeles. */
.br-free-mini{--br-free-mini-scale:1}
.br-free-mini>.br-collage-text-layer{
 padding:calc(3px * var(--br-free-mini-scale)) calc(8px * var(--br-free-mini-scale));
 text-shadow:0 calc(2px * var(--br-free-mini-scale)) calc(5px * var(--br-free-mini-scale)) rgba(0,0,0,.48);
}

/* R41 — CU0 publicado queda aislado de .ig/.le. La capa fotográfica conserva
   siempre su relación natural y la figura completa actúa como acceso a galería. */
.br-free-published:not(.br-free-mini) .br-free-published-shape{cursor:pointer;}
.br-free-published:not(.br-free-mini) .br-free-published-shape:focus-visible{outline:2px solid rgba(47,132,246,.9);outline-offset:3px;}
.br-free-published .br-free-photo{background-origin:border-box!important;background-clip:border-box!important;}

/* R47 — fondos lisos + degradados de dos colores */
#createpost .cp-free-background-tools{align-items:flex-start}
#createpost .cp-free-background-palettes{display:flex;flex:1 1 auto;min-width:0;flex-direction:column;gap:5px}
#createpost .cp-free-gradient-list{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;min-width:0;padding:2px 0}
#createpost .cp-free-gradient-list::-webkit-scrollbar{display:none}
#createpost .cp-free-gradient{width:28px;height:28px;flex:0 0 28px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #d7e1eb;cursor:pointer;position:relative;background-size:100% 100%}
#createpost .cp-free-gradient.is-active:after{content:"";position:absolute;inset:-4px;border:2px solid #2f84f6;border-radius:50%}
@media(max-width:768px){
 #createpost .cp-free-background-palettes{flex-basis:calc(100% - 96px)}
 #createpost .cp-free-gradient{width:25px;height:25px;flex-basis:25px}
}


/* ==========================================================
   R49 — ajustes de cierre visual (simetría, sombras y selector)
   ========================================================== */
#createpost .cp-free-shape-button[data-free-shape="diamond"],
#createpost .cp-free-shape-button[data-free-shape="triangle"]{display:none!important}
#createpost .cp-free-shape[data-shadow="light"] .cp-free-shape-mask,
#createpost .cp-free-shape[data-shadow="light"] .cp-free-shape-border{filter:drop-shadow(0 3px 5px rgba(51,65,85,.22))}
#createpost .cp-free-shape[data-shadow="gray"] .cp-free-shape-mask,
#createpost .cp-free-shape[data-shadow="gray"] .cp-free-shape-border{filter:drop-shadow(0 4px 7px rgba(51,65,85,.40))}
#createpost .cp-free-shape[data-shadow="dark"] .cp-free-shape-mask,
#createpost .cp-free-shape[data-shadow="dark"] .cp-free-shape-border{filter:drop-shadow(0 5px 9px rgba(15,23,42,.58))}
.br-free-published-shape[data-shadow="light"] .br-free-published-mask,
.br-free-published-shape[data-shadow="light"] .br-free-published-border{filter:drop-shadow(0 3px 5px rgba(51,65,85,.22))}
.br-free-published-shape[data-shadow="gray"] .br-free-published-mask,
.br-free-published-shape[data-shadow="gray"] .br-free-published-border{filter:drop-shadow(0 4px 7px rgba(51,65,85,.40))}
.br-free-published-shape[data-shadow="dark"] .br-free-published-mask,
.br-free-published-shape[data-shadow="dark"] .br-free-published-border{filter:drop-shadow(0 5px 9px rgba(15,23,42,.58))}
#createpost .cp-free-gradient-list,
#createpost .cp-free-border-colors{flex-wrap:wrap;overflow:visible}
#createpost .cp-free-background-palettes{gap:7px}
#createpost .cp-free-color-list,#createpost .cp-free-gradient-list{row-gap:8px}
#createpost .cp-free-motion-tools{margin-left:auto}
#createpost.cp-free-mode.cp-free-ready .cp-photo-tools{justify-content:flex-end!important}

/* R49 — Rotación automática siempre anclada al lado derecho del collage. */
#createpost.cp-free-mode.cp-free-ready .cp-photo-tools{
    left:auto!important;right:10px!important;width:auto!important;justify-content:flex-end!important;
}
@media(max-width:700px){
    #createpost.cp-free-mode.cp-free-ready .cp-photo-tools{right:7px!important;}
}
