/* ============================================================
   QTouch — Creative editor ("Craft") — visual canvas editing
   Same identity as the builder: white, navy #0F172A, orange #F97316.
   ============================================================ */

/* texts scale with the frame they sit in (canvas, previews, device mockups) */
:root{--cr-u:calc(100cqw / 620)}
#cveEditorPlayer,.cve-screen-frame > div,#cveEditorLiveMirror,.cve-mock-hw-screen-poly{container-type:inline-size}
.cr-txt{display:inline-block;white-space:pre;line-height:1.15;letter-spacing:-.01em;font-kerning:normal}
.cr-tp,.cr-qp{position:absolute;z-index:6;pointer-events:none}
.cr-ovl{position:absolute;inset:0;container-type:inline-size;pointer-events:none;overflow:hidden;border-radius:inherit;z-index:2}

/* the floating Creative Cart is not part of the builder any more */
.cve-cart-fab,.cve-cart-drawer{display:none!important}

/* ---------- device previews: device frame · screen viewport · creative ---------- */
.crd-wrap{display:flex;justify-content:center;padding:4px 0;margin:10px 0!important}
.crd{position:relative;width:min(100%,var(--crd-w,420px));line-height:0;user-select:none}
.crd-frame{display:block;width:100%;height:100%;pointer-events:none;-webkit-user-drag:none}
.crd-screen{position:absolute;overflow:hidden;background:#000;display:flex;align-items:center;justify-content:center;container-type:size}
.crd-fit{position:relative;width:min(100cqw,calc(100cqh * 1.7778));overflow:hidden;background:#0F172A}
.crd-quad{left:0;top:0;transform-origin:0 0;visibility:hidden;background:#0F172A;display:block;container-type:normal;backface-visibility:hidden}
.crd-ui{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.crd-mirror{position:absolute;overflow:hidden;container-type:inline-size;background:#0F172A}
.crd-bd{position:absolute;left:-10%;top:-10%;width:120%;height:120%;object-fit:cover;filter:blur(22px) brightness(.72);pointer-events:none}
.crd-bd.vid{inset:0;left:0;top:0;width:100%;height:100%;background:radial-gradient(circle at 50% 50%,#1E293B,#0F172A);filter:none}
.crd-media{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block}
.cve-screen-frame.crd-shot{position:relative;overflow:hidden;background:#0F172A;max-height:none;margin:0 auto;line-height:normal}
.crd-empty{position:absolute;inset:0;display:grid;place-items:center;color:#64748B;font-size:12px;font-weight:600;background:#F1F5F9;line-height:normal}
.cve-large-preview .crd{width:min(100%,calc(72vh * var(--ar,1)))}
.cr-uizone{position:absolute;z-index:3;pointer-events:none;display:flex;align-items:center;justify-content:center;background:repeating-linear-gradient(135deg,rgba(15,23,42,.62) 0 7px,rgba(15,23,42,.42) 7px 14px);border-top:1.5px dashed rgba(255,255,255,.7)}
.cr-uizone span{font-size:10px;font-weight:800;color:#fff;background:rgba(15,23,42,.78);padding:4px 9px;border-radius:99px;line-height:1.25;text-align:center;max-width:90%}

/* ---------- frame ---------- */
.cve-editor.cr-ed{padding:16px 24px 28px;gap:10px}
.cr-ed .cve-editor-topbar{padding:7px 10px;gap:10px}
.cr-ed .cve-editor-topbar .creative-name{font-size:14.5px}
.cr-saved{color:#16A34A!important;white-space:nowrap}
.cr-saved svg{flex-shrink:0}
.cr-saved.busy{color:#64748B!important}
.cr-spin{width:9px;height:9px;border-radius:50%;border:2px solid #CBD5E1;border-top-color:#F97316;animation:crSpin .7s linear infinite}
@keyframes crSpin{to{transform:rotate(360deg)}}
.cr-top-sec{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1.5px solid #E2E8F0;color:#0F172A;padding:8px 13px;border-radius:9px;font:inherit;font-size:12.5px;font-weight:800;cursor:pointer;white-space:nowrap}
.cr-top-sec:hover{border-color:#0F172A}

/* ---------- channel bar: READY / NEEDS ADAPTATION / UNAVAILABLE ---------- */
.cve-editor-channels.cr-chs{padding:4px;gap:3px;border-radius:12px}
.cve-editor-channels .ch-tab.cr-ch{min-width:0;padding:6px 12px 6px;gap:3px;border-radius:9px;flex:0 0 auto}
.cr-ch-n{display:flex;align-items:baseline;gap:6px;line-height:1}
.cr-ch-n b{font-size:12.5px;font-weight:800;color:#0F172A;letter-spacing:-.1px}
.cr-ch-n em{font-style:normal;font-size:10.5px;font-weight:700;color:#94A3B8}
.cr-ch-st{display:inline-flex;align-items:center;gap:5px;font-size:9px;font-weight:800;letter-spacing:.55px;text-transform:uppercase;white-space:nowrap;line-height:1}
.cr-ch-st i{width:6px;height:6px;border-radius:50%;flex-shrink:0}
.cr-ch.ok .cr-ch-st{color:#15803D}.cr-ch.ok .cr-ch-st i{background:#22C55E}
.cr-ch.need .cr-ch-st{color:#B45309}.cr-ch.need .cr-ch-st i{background:#F59E0B}
.cr-ch.na .cr-ch-st{color:#94A3B8}.cr-ch.na .cr-ch-st i{background:#CBD5E1}
.cve-editor-channels .ch-tab.cr-ch.locked{opacity:.5;cursor:not-allowed;box-shadow:none;background:transparent}
.cve-editor-channels .ch-tab.cr-ch.locked .cr-ch-n b{color:#94A3B8}

/* ---------- layout ---------- */
.cve-editor-body.cr-body{grid-template-columns:minmax(0,1fr) 360px;gap:16px;align-items:start}
.cr-main{gap:10px!important;min-width:0}
.cr-side{gap:12px!important;min-width:0;position:sticky;top:12px}

/* ---------- creative tools ---------- */
.cr-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;background:#fff;border:1px solid #E2E8F0;border-radius:14px;padding:6px 8px;position:relative;z-index:20}
.cr-tools-l{font-size:9.5px;font-weight:800;letter-spacing:1.3px;text-transform:uppercase;color:#94A3B8;padding:0 6px 0 4px;white-space:nowrap}
.cr-tool{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 13px;border-radius:10px;border:1.5px solid #E2E8F0;background:#fff;font:inherit;font-size:12.5px;font-weight:800;color:#0F172A;cursor:pointer;transition:border-color .14s,background .14s,color .14s;white-space:nowrap}
.cr-tool:hover{border-color:#0F172A}
.cr-tool svg{flex-shrink:0}
.cr-tool.on{border-color:#F97316;background:#FFF7ED;color:#C2410C}
.cr-tool.done{background:#F0FDF4;border-color:#BBF7D0;color:#166534}
.cr-tool.done.on{border-color:#16A34A}
.cr-grad{margin-left:auto;position:relative;display:inline-flex;align-items:center;gap:8px;padding-left:10px;border-left:1px solid #E2E8F0}
.cr-grad-b{display:inline-flex;align-items:center;gap:6px;background:none;border:0;font:inherit;font-size:12.5px;font-weight:700;color:#475569;cursor:pointer;padding:6px 4px;border-radius:8px;white-space:nowrap}
.cr-grad-b:hover:not(:disabled),.cr-grad-b.on{color:#0F172A}
.cr-grad-b:disabled{cursor:default}
.cr-sw{position:relative;display:inline-block;width:34px;height:20px;flex-shrink:0;cursor:pointer}
.cr-sw input{position:absolute;opacity:0;width:0;height:0}
.cr-sw i{position:absolute;inset:0;background:#CBD5E1;border-radius:99px;transition:.18s}
.cr-sw i::after{content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.25);transition:.18s}
.cr-sw input:checked + i{background:#F97316}
.cr-sw input:checked + i::after{transform:translateX(14px)}
.cr-sw input:focus-visible + i{box-shadow:0 0 0 3px rgba(249,115,22,.25)}

/* ---------- licence status line ---------- */
.cr-licline{display:flex;align-items:center;gap:6px;flex-wrap:wrap;background:#F0FDF4;border:1px solid #BBF7D0;border-radius:12px;padding:7px 12px;font-size:12px;color:#14532D;font-weight:600}
.cr-licline b{font-weight:800;color:#0F172A}
.cr-licline span{color:#166534}
.cr-licline.warn{background:#FFFBEB;border-color:#FDE68A;color:#78350F}
.cr-licline.warn span{color:#92400E}
.cr-lic-ic{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;color:#fff;background:#16A34A;flex-shrink:0}
.cr-lic-ic.wait{background:#F59E0B}
.cr-licline .cr-link{margin-left:auto}
.cr-pill{display:inline-flex;align-items:center;gap:4px;font-size:10.5px;font-weight:800;padding:3px 8px;border-radius:99px;white-space:nowrap}
.cr-pill.warn{background:#FEF3C7;color:#92400E}
.cr-pill.wait{background:#FFEDD5;color:#9A3412}
.cr-link{background:none;border:0;padding:2px 4px;font:inherit;font-size:12px;font-weight:800;color:#EA580C;cursor:pointer;display:inline-flex;align-items:center;gap:4px;border-radius:6px}
.cr-link:hover{color:#C2410C;text-decoration:underline}

/* ---------- stage ---------- */
.cr-stage{position:relative;background:#F1F5F9;background-image:radial-gradient(#E2E8F0 1px,transparent 1px);background-size:14px 14px;border:1px solid #E2E8F0;border-radius:18px;padding:52px 20px 22px;display:flex;flex-direction:column;align-items:center}
.cr-stage-hd{position:absolute;top:12px;left:16px;right:16px;display:flex;align-items:center;gap:8px;font-size:12px;flex-wrap:nowrap;min-width:0;overflow:hidden}
.cr-stage-hd b{font-weight:900;color:#0F172A;letter-spacing:-.1px}
.cr-muted{color:#64748B;font-weight:600;white-space:nowrap}
.cr-hint{margin-left:auto;color:#94A3B8;font-size:11.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cr-adapt{display:inline-flex;align-items:center;gap:5px;background:#fff;border:1px solid #E2E8F0;border-radius:99px;padding:3px 9px;font-size:11px;font-weight:800;color:#475569;white-space:nowrap}
.cr-adapt.ok{color:#15803D;border-color:#BBF7D0;background:#F0FDF4}
.cr-adapt .cr-link{font-size:11px;padding:0 2px}
.cr-stage .cve-editor-player{width:min(100%,1100px,calc((100vh - 330px) * 1.7778));max-width:none;max-height:none;margin:0;border:0;border-radius:6px;box-shadow:0 18px 40px -22px rgba(15,23,42,.55),0 0 0 1px rgba(15,23,42,.08);overflow:visible;min-width:280px}
.cr-stage .cve-editor-player > img,.cr-stage .cve-editor-player > video,.cr-stage .cve-player-backdrop{border-radius:6px}
.cr-stage .cve-player-backdrop{overflow:hidden;position:absolute;inset:0}
.cr-stage .cve-crop-tag{font-size:10px;padding:2px 7px;top:6px;left:6px}
.cr-stage .cve-crop-adjust{font-size:10.5px;padding:3px 9px;bottom:6px}
.cr-base .cve-crop-box{border-color:transparent!important;cursor:default}
.cr-base .cve-crop-box:hover{background:transparent}
.cr-base .cve-crop-grip,.cr-base .cve-crop-adjust{display:none}
.cr-stage .cve-crop-tag{display:none}
.cr-stage .cve-crop-box,.cr-stage .cve-crop-box.dragging{box-shadow:none}
.cr-stage .cve-crop-box.dragging{background:rgba(249,115,22,.06)}
.cr-dim{position:absolute;inset:0;z-index:2;background:rgba(15,23,42,.46);pointer-events:none;border-radius:6px}
.cr-stage .cve-crop-box::after{content:"";position:absolute;inset:5% 6%;border:1px dashed rgba(255,255,255,.45);border-radius:3px;pointer-events:none;opacity:0;transition:opacity .15s}
.cr-stage.cr-dragging .cve-crop-box::after,.cr-stage .cve-crop-box.dragging::after{opacity:1}

/* ---------- canvas elements ---------- */
.cr-layer{position:absolute;inset:0;z-index:6;pointer-events:none}
.cr-el{position:absolute;pointer-events:auto;cursor:move;user-select:none;-webkit-user-select:none;touch-action:none;border-radius:2px}
.cr-el:hover{outline:1.5px solid rgba(249,115,22,.75);outline-offset:3px}
.cr-el.sel{outline:2px solid #F97316;outline-offset:3px;z-index:2}
.cr-text{width:max-content}
.cr-text.editing{cursor:text;outline:2px solid #F97316;outline-offset:3px}
.cr-text.editing .cr-txt{outline:none;user-select:text;-webkit-user-select:text;cursor:text;caret-color:#F97316;min-width:.5em}
.cr-h{position:absolute;width:10px;height:10px;background:#fff;border:2px solid #F97316;border-radius:3px;z-index:3;box-shadow:0 1px 4px rgba(15,23,42,.3)}
.cr-h.tl{top:-9px;left:-9px;cursor:nwse-resize}
.cr-h.tr{top:-9px;right:-9px;cursor:nesw-resize}
.cr-h.bl{bottom:-9px;left:-9px;cursor:nesw-resize}
.cr-h.br{bottom:-9px;right:-9px;cursor:nwse-resize}
.cr-qr,.cr-qp{position:absolute}
.cr-qr-card{background:#fff;border-radius:9%;padding:6%;box-shadow:0 6px 16px -4px rgba(0,0,0,.4);aspect-ratio:1;box-sizing:border-box}
.cr-qr-card img{width:100%;height:100%;display:block;pointer-events:none}
.cr-qr-lbl{margin-top:5%;background:#fff;color:#0F172A;font-weight:800;text-align:center;border-radius:.45em;padding:.3em .35em;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 4px 10px -4px rgba(0,0,0,.35);font-family:inherit}
.cr-guides i{position:absolute;background:#EC4899;opacity:0;z-index:7;pointer-events:none}
.cr-guides .gx{top:0;bottom:0;width:1px}
.cr-guides .gy{left:0;right:0;height:1px}
.cr-guides i.on{opacity:.9}

/* ---------- floating contextual toolbar ---------- */
.cr-ctx{position:absolute;z-index:40;max-width:calc(100% - 16px)}
.cr-ctx[hidden]{display:none}
.cr-ctx-bar{display:flex;align-items:center;gap:1px;background:#0F172A;color:#fff;border-radius:12px;padding:4px;box-shadow:0 14px 34px -12px rgba(15,23,42,.6);overflow-x:auto;scrollbar-width:none;animation:crIn .12s ease-out}
.cr-ctx-bar::-webkit-scrollbar{display:none}
@keyframes crIn{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}
.cr-cb{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:30px;min-width:30px;padding:0 7px;border:0;border-radius:8px;background:transparent;color:#E2E8F0;font:inherit;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap;flex-shrink:0}
.cr-cb:hover{background:rgba(255,255,255,.1);color:#fff}
.cr-cb.on{background:rgba(249,115,22,.22);color:#FDBA74}
.cr-cb.wide{padding:0 9px}
.cr-cb.sq{padding:0}
.cr-cb.danger:hover{background:rgba(239,68,68,.2);color:#FCA5A5}
.cr-cs{width:1px;height:18px;background:rgba(255,255,255,.14);margin:0 3px;flex-shrink:0}
.cr-step{display:inline-flex;align-items:center;flex-shrink:0}
.cr-step b{min-width:30px;text-align:center;font-size:12px;font-weight:800;font-variant-numeric:tabular-nums}
.cr-step .cr-cb{font-size:15px;font-weight:700}
.cr-bold{font-size:14px;font-weight:900;font-family:Georgia,serif}
.cr-dot{width:16px;height:16px;border-radius:50%;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.5),0 0 0 1px rgba(15,23,42,.5);display:block}
.cr-pop{position:absolute;top:calc(100% + 6px);left:0;z-index:5;background:#fff;color:#0F172A;border:1px solid #E2E8F0;border-radius:14px;box-shadow:0 20px 44px -18px rgba(15,23,42,.45);padding:8px;min-width:190px;animation:crIn .12s ease-out}
.cr-ctx.below .cr-pop{top:calc(100% + 6px)}
.cr-pop-r{left:auto;right:0}
.cr-pop-t{font-size:10px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:#94A3B8;padding:4px 6px 6px}
.cr-pop-list{display:flex;flex-direction:column;gap:1px;min-width:210px}
.cr-pi{display:flex;align-items:center;gap:8px;width:100%;text-align:left;background:none;border:0;border-radius:9px;padding:8px 9px;font:inherit;font-size:13px;font-weight:700;color:#0F172A;cursor:pointer}
.cr-pi:hover{background:#F8FAFC}
.cr-pi span{flex:1}
.cr-pi svg{color:#F97316}
.cr-pi.danger{color:#DC2626}.cr-pi.danger svg{color:#DC2626}
.cr-pi-note{font-size:12px;color:#15803D;cursor:default}.cr-pi-note svg{color:#16A34A}
.cr-pi-note:hover{background:none}
.cr-posg{display:grid;grid-template-columns:repeat(3,34px);gap:4px;padding:2px 4px 4px}
.cr-posc{height:26px;border:1.5px solid #E2E8F0;background:#F8FAFC;border-radius:6px;cursor:pointer;display:flex;padding:4px}
.cr-posc i{width:8px;height:6px;border-radius:2px;background:#94A3B8}
.cr-posc:hover{border-color:#F97316}.cr-posc:hover i{background:#F97316}
.cr-posc.tc,.cr-posc.mc,.cr-posc.bc{justify-content:center}
.cr-posc.tr,.cr-posc.mr,.cr-posc.br{justify-content:flex-end}
.cr-posc.ml,.cr-posc.mc,.cr-posc.mr{align-items:center}
.cr-posc.bl,.cr-posc.bc,.cr-posc.br{align-items:flex-end}
.cr-grad-pop{top:calc(100% + 10px);min-width:250px;padding:10px 12px}
.cr-row{display:flex;align-items:center;gap:10px;padding:5px 0;font-size:12px;font-weight:700;color:#475569}
.cr-row > span:first-child{width:62px;flex-shrink:0}
.cr-row input[type=range]{flex:1;accent-color:#F97316;min-width:0}
.cr-row b{width:36px;text-align:right;color:#0F172A;font-variant-numeric:tabular-nums}
.cr-tints{display:flex;gap:6px}
.cr-tint{width:22px;height:22px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #E2E8F0;cursor:pointer;padding:0}
.cr-tint.on{box-shadow:0 0 0 2px #F97316}

/* ---------- colour swatches & chips (shared) ---------- */
.cr-sw8{display:flex;flex-wrap:wrap;gap:6px;padding:2px}
.cr-swc{width:24px;height:24px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #CBD5E1;cursor:pointer;padding:0;position:relative;display:grid;place-items:center;color:#475569;background:#fff}
.cr-swc.on{box-shadow:0 0 0 2px #F97316}
.cr-swx{background:conic-gradient(#EF4444,#F59E0B,#22C55E,#06B6D4,#6366F1,#EC4899,#EF4444)!important;color:#fff}
.cr-swx input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.cr-chips{display:flex;flex-wrap:wrap;gap:5px}
.cr-chip{background:#fff;border:1.5px solid #E2E8F0;border-radius:99px;padding:5px 11px;font:inherit;font-size:12px;font-weight:700;color:#475569;cursor:pointer}
.cr-chip:hover{border-color:#0F172A;color:#0F172A}
.cr-chip.on{border-color:#F97316;background:#FFF7ED;color:#C2410C}
.cr-chip.ro{cursor:default;background:#F8FAFC;font-size:11.5px;padding:4px 9px}
.cr-chip.ro:hover{border-color:#E2E8F0;color:#475569}

/* ---------- right panel ---------- */
.cr-insp:empty{display:none}
.cr-insp{background:#fff;border:1px solid #E2E8F0;border-radius:16px;padding:14px;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.cr-insp-hd{display:flex;align-items:flex-start;gap:8px;margin-bottom:6px}
.cr-insp-hd > div{flex:1;min-width:0}
.cr-insp-hd h4{margin:0;font-size:14px;font-weight:900;letter-spacing:-.2px;color:#0F172A}
.cr-insp-hd p{margin:3px 0 0;font-size:12px;color:#64748B;font-weight:500;line-height:1.4}
.cr-insp-hd kbd{font:inherit;font-size:10.5px;font-weight:800;background:#F1F5F9;border:1px solid #E2E8F0;border-radius:4px;padding:0 4px}
.cr-x{width:28px;height:28px;border-radius:8px;border:0;background:#F1F5F9;color:#475569;display:grid;place-items:center;cursor:pointer;flex-shrink:0}
.cr-x:hover{background:#E2E8F0;color:#0F172A}
.cr-lbl{display:block;font-size:10.5px;font-weight:800;color:#64748B;letter-spacing:.6px;text-transform:uppercase;margin:12px 0 6px}
.cr-lbl em{font-style:normal;text-transform:none;letter-spacing:0;font-weight:600;color:#94A3B8}
.cr-lbl-row{display:flex;align-items:center;justify-content:space-between}
.cr-mini{display:inline-flex;align-items:center;gap:5px;text-transform:none;letter-spacing:0;font-weight:700;color:#475569;cursor:pointer}
.cr-mini input{accent-color:#F97316}
.cr-in{width:100%;box-sizing:border-box;border:1.5px solid #E2E8F0;border-radius:10px;padding:9px 11px;font:inherit;font-size:13px;font-weight:600;color:#0F172A;outline:none;background:#fff;transition:border-color .14s,box-shadow .14s}
.cr-in:focus{border-color:#F97316;box-shadow:0 0 0 3px rgba(249,115,22,.13)}
.cr-in.bad,.cr-in.bad:focus{border-color:#EF4444;box-shadow:0 0 0 3px rgba(239,68,68,.12)}
.cr-ta{resize:vertical;min-height:54px;line-height:1.4}
.cr-msg{font-size:11.5px;font-weight:700;margin-top:6px;min-height:15px}
.cr-msg.bad{color:#DC2626}.cr-msg.ok{color:#16A34A}
.cr-msg:empty{min-height:0;margin:0}
.cr-btn{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;margin-top:14px;padding:11px 14px;border:0;border-radius:11px;background:#F97316;color:#fff;font:inherit;font-size:13px;font-weight:800;cursor:pointer;box-shadow:0 6px 16px -8px rgba(249,115,22,.7);transition:background .14s}
.cr-btn:hover:not(:disabled){background:#EA580C}
.cr-btn:disabled{background:#FED7AA;box-shadow:none;cursor:not-allowed}
.cr-btn.sm{width:auto;margin:0 0 0 auto;padding:7px 14px;font-size:12px;border-radius:9px}
.cr-ghost{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1.5px solid #E2E8F0;border-radius:9px;padding:7px 11px;font:inherit;font-size:12px;font-weight:800;color:#0F172A;cursor:pointer}
.cr-ghost:hover{border-color:#0F172A}
.cr-ghost.danger{color:#DC2626}.cr-ghost.danger:hover{border-color:#DC2626;background:#FEF2F2}
.cr-foot{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px;padding-top:12px;border-top:1px solid #F1F5F9}
.cr-note{display:flex;align-items:flex-start;gap:7px;margin-top:12px;background:#F0FDF4;border:1px solid #DCFCE7;border-radius:10px;padding:8px 10px;font-size:12px;color:#166534;line-height:1.4;font-weight:600}
.cr-note svg{flex-shrink:0;margin-top:1px}
.cr-note span{flex:1}
.cr-note b{font-weight:800}
.cr-note.warn{background:#FFFBEB;border-color:#FDE68A;color:#92400E}
.cr-p{font-size:12.5px;color:#475569;line-height:1.5;margin:8px 0 0}
.cr-check{display:flex;align-items:flex-start;gap:8px;margin-top:12px;font-size:12px;color:#475569;line-height:1.4;cursor:pointer}
.cr-check input{accent-color:#F97316;margin-top:2px;flex-shrink:0}
.cr-check b{color:#0F172A;font-weight:800}
.cr-step.lt{background:#F8FAFC;border:1px solid #E2E8F0;border-radius:10px;padding:2px;width:max-content}
.cr-step.lt .cr-cb{color:#0F172A}
.cr-step.lt .cr-cb:hover{background:#E2E8F0}
.cr-step.lt b{color:#0F172A}
.cr-qr-prev{margin:14px auto 4px;width:150px;height:150px;border-radius:12px;border:1.5px dashed #CBD5E1;display:grid;place-items:center;color:#CBD5E1;background:#F8FAFC}
.cr-qr-prev.on{border:1px solid #E2E8F0;background:#fff;padding:6px;box-sizing:border-box}
.cr-qr-prev img{width:100%;height:100%;display:block}

/* empty state + layers */
.cr-empty{text-align:center;padding:6px 6px 2px}
.cr-empty-ic{width:40px;height:40px;border-radius:12px;background:#FFF7ED;color:#F97316;display:inline-grid;place-items:center;margin-bottom:8px}
.cr-empty h4{margin:0;font-size:14px;font-weight:900;color:#0F172A;letter-spacing:-.2px}
.cr-empty p{margin:4px auto 0;font-size:12.5px;color:#64748B;line-height:1.45;max-width:260px}
.cr-empty p b{color:#0F172A}
.cr-lays{display:flex;flex-direction:column;gap:2px;margin-top:6px}
.cr-lay{display:flex;align-items:center;gap:9px;width:100%;text-align:left;background:none;border:0;border-radius:10px;padding:7px 8px;font:inherit;font-size:12.5px;font-weight:700;color:#0F172A;cursor:pointer}
.cr-lay:hover,.cr-lay.on{background:#F8FAFC}
.cr-lay-ic{width:26px;height:26px;border-radius:8px;background:#F1F5F9;color:#475569;display:grid;place-items:center;flex-shrink:0}
.cr-lay-ic.lic{background:#ECFEFF;color:#0E7490}
.cr-lay-t{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cr-lay-t small{display:block;font-size:11px;color:#94A3B8;font-weight:600;overflow:hidden;text-overflow:ellipsis}
.cr-lay em{font-style:normal;font-size:10px;font-weight:800;color:#15803D;background:#F0FDF4;border-radius:99px;padding:2px 7px}

/* licence cards: a logo tile that fits any logo shape, then the facts that matter */
.cr-lcards{display:flex;flex-direction:column;gap:12px}
.cr-lcard{display:flex;flex-direction:column;border:1.5px solid #E5E9F0;border-radius:16px;background:#fff;overflow:hidden;transition:border-color .16s,box-shadow .16s,transform .16s}
.cr-lcard:hover{border-color:#CBD5E1;box-shadow:0 14px 26px -20px rgba(15,23,42,.45);transform:translateY(-1px)}
.cr-lcard.sel{border-color:#16A34A;box-shadow:0 0 0 3px rgba(22,163,74,.12)}
.cr-ltile{position:relative;display:grid;place-items:center;height:96px;background:radial-gradient(120% 140% at 50% 0%,#FFFFFF 0%,#F1F4F9 70%);border-bottom:1px solid #EDF0F5}
.cr-ltile img{max-width:62%;max-height:66%;width:auto;height:auto;object-fit:contain;display:block;filter:drop-shadow(0 4px 8px rgba(15,23,42,.14))}
.cr-ltile.mono{border-bottom:0}
.cr-ltile.mono span{font-size:36px;font-weight:900;color:#fff;letter-spacing:-.02em;text-shadow:0 4px 14px rgba(0,0,0,.3)}
.cr-ltile.sm{flex:0 0 46px;width:46px;height:46px;border:1px solid #DDE3EC;border-radius:12px;background:#fff;overflow:hidden}
.cr-ltile.sm img{max-width:76%;max-height:70%;filter:none}
.cr-ltile.sm.mono{border:0}.cr-ltile.sm.mono span{font-size:20px;text-shadow:none}
.cr-lbody{flex:1;min-width:0;display:flex;flex-direction:column;gap:9px;padding:12px 14px 14px}
.cr-lhead{display:flex;flex-direction:column;gap:2px;min-width:0}
.cr-lhead > b{font-size:15px;font-weight:900;color:#0F172A;letter-spacing:-.25px;line-height:1.25}
.cr-lmeta{font-size:12px;color:#64748B;font-weight:600}
.cr-lfacts{margin:0;display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:6px 12px;padding:9px 0;border-top:1px dashed #E5E9F0;border-bottom:1px dashed #E5E9F0}
.cr-lfacts div{min-width:0}
.cr-lfacts dt{font-size:9.5px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:#94A3B8}
.cr-lfacts dd{margin:2px 0 0;font-size:12px;font-weight:700;color:#1E293B;line-height:1.3}
.cr-rights{display:flex;flex-wrap:wrap;gap:4px}
.cr-right{display:inline-flex;align-items:center;gap:3px;font-size:9.5px;font-weight:800;letter-spacing:.3px;padding:2px 7px;border-radius:99px;background:#F1F5F9;color:#94A3B8}
.cr-right.ok{background:#EAF7EF;color:#15803D}
.cr-lfoot{display:flex;align-items:center;gap:8px;margin-top:2px}
.cr-lprice{display:flex;flex-direction:column;line-height:1.2;min-width:0}
.cr-lprice b{font-size:15px;font-weight:900;color:#0F172A;white-space:nowrap}
.cr-lprice b em{font-style:normal;font-size:11.5px;color:#64748B;font-weight:600}
.cr-lsb{margin-left:auto;border:1.5px solid #0F172A;background:#fff;color:#0F172A;border-radius:10px;padding:7px 16px;font:inherit;font-size:12.5px;font-weight:800;cursor:pointer;transition:background .14s,color .14s}
.cr-lsb:hover{background:#0F172A;color:#fff}
.cr-lsel{margin-left:auto;display:inline-flex;align-items:center;gap:4px;color:#15803D!important;font-weight:800!important;font-size:12.5px!important}
.cr-lstat{background:#F3FBF6;border:1px solid #BFE6CD;border-radius:14px;padding:10px 12px;font-size:12px;color:#166534;font-weight:600;display:flex;flex-direction:column;gap:6px;margin-top:6px}
.cr-lstat.warn{background:#FFFBEB;border-color:#FDE68A;color:#92400E}
.cr-lstat-t{display:flex;align-items:center;gap:10px;color:#0F172A}
.cr-lstat-t > div{display:flex;flex-direction:column;gap:1px;min-width:0}
.cr-lstat-t b{font-weight:900;font-size:13.5px;line-height:1.25}
.cr-lstat-t span{font-size:11.5px;font-weight:600;color:#166534}
.cr-lstat.warn .cr-lstat-t span{color:#92400E}
.cr-lstat .cr-pill{align-self:flex-start}
.cr-lstat-a{display:flex;align-items:center;gap:6px;padding-top:6px;border-top:1px solid rgba(22,101,52,.14)}
.cr-lstat-a i{width:3px;height:3px;border-radius:50%;background:#86B79A}
.cr-link.danger{color:#DC2626}
.cr-more{margin-top:12px;justify-content:center;width:100%}

/* ---------- QWIFI: the phone is the canvas ---------- */
.cr-wstage{padding-top:52px}
.cr-seg{margin-left:auto;display:inline-flex;gap:2px;background:#fff;border:1px solid #E2E8F0;border-radius:9px;padding:2px;flex-shrink:0}
.cr-seg button{display:inline-flex;align-items:center;gap:5px;border:0;background:none;border-radius:7px;padding:5px 10px;font:inherit;font-size:11.5px;font-weight:800;color:#64748B;cursor:pointer}
.cr-seg button.on{background:#FFF7ED;color:#EA580C}
.cr-wphone{width:100%;display:flex;justify-content:center}
.cr-wphone .wifi-mock-wrap{padding:0}
.cr-wphone .wifi-iphone{width:clamp(230px,calc((100vh - 330px) * .462),290px)}
.cr-wscreen .cr-wphone .wifi-iphone{width:clamp(230px,calc((100vh - 330px) * .5),300px)}
.cr-hint-l{margin-left:4px}
.cr-wphone .wifi-preview-btn{display:none}
.cr-wphone [data-cr-w]{cursor:pointer;transition:outline-color .12s}
.cr-wphone [data-cr-w]:hover{outline:2px solid rgba(249,115,22,.65);outline-offset:2px}
.cr-ws-bg .cr-wphone [data-cr-w="bg"],.cr-ws-logo .cr-wphone [data-cr-w="logo"],.cr-ws-text .cr-wphone [data-cr-w="text"],
.cr-ws-cta .cr-wphone [data-cr-w="cta"],.cr-ws-qr .cr-wphone [data-cr-w="qr"],.cr-ws-lic .cr-wphone [data-cr-w="lic"]{outline:2px solid #F97316;outline-offset:2px}
.cr-ws-bg .cr-wphone [data-cr-w="bg"]{outline-offset:-3px}
.cr-wphone .wifi-portal-hero[data-cr-w]:hover{outline-offset:-3px}
.cr-wscreen .wifi-iphone{background:transparent;padding:0;box-shadow:0 18px 40px -20px rgba(15,23,42,.45);border-radius:16px;aspect-ratio:390/780}
.cr-wscreen .wifi-screen{border-radius:16px}
.cr-wscreen .wifi-notch,.cr-wscreen .wifi-statusbar,.cr-wscreen .wifi-browser{display:none}
.cr-w-logo{position:absolute;top:12px;right:12px;z-index:3;background:#fff;border-radius:99px;padding:5px 11px;font-size:10.5px;font-weight:900;color:#0F172A;box-shadow:0 3px 10px rgba(15,23,42,.18);max-width:48%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.2}
.cr-w-logo img{height:18px;display:block;max-width:100%;object-fit:contain}
.cr-w-logo.ph{background:rgba(255,255,255,.85);border:1.5px dashed #94A3B8;color:#64748B;font-weight:800;box-shadow:none}
.cr-w-lic{position:absolute;left:12px;bottom:calc(19% + 10px);z-index:3;display:inline-flex;align-items:center;gap:4px;background:rgba(15,23,42,.86);color:#fff;border-radius:99px;padding:4px 9px;font-size:9px;font-weight:800;max-width:62%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cr-w-qr{position:absolute;right:12px;bottom:calc(19% + 8px);z-index:3;width:52px;background:#fff;border-radius:8px;padding:4px;box-shadow:0 4px 12px rgba(15,23,42,.25);text-align:center;box-sizing:border-box}
.cr-w-qr img{width:100%;display:block}
.cr-w-qr i{display:block;font-style:normal;font-size:6.5px;font-weight:800;color:#0F172A;line-height:1.1;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cr-w-dest{display:flex;align-items:center;justify-content:center;gap:4px;font-size:9px;color:#64748B;font-weight:700;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-shrink:0;line-height:1.3}
.cr-wphone .wifi-portal-sheet .wifi-portal-btn.secondary{margin-top:5px}
.cr-wphone .wifi-portal-sheet .wifi-portal-social{margin-top:7px}
.cr-wthumb{margin-top:10px;height:150px;border-radius:12px;background-size:cover;background-position:center;border:1px solid #E2E8F0}
.cr-wmore{margin-top:12px;border-top:1px solid #F1F5F9;padding-top:8px}
.cr-wmore > summary{list-style:none;display:flex;align-items:center;gap:8px;cursor:pointer;font-size:12.5px;font-weight:800;color:#0F172A;padding:6px 2px}
.cr-wmore > summary::-webkit-details-marker{display:none}
.cr-wmore > summary small{flex:1;font-size:11px;font-weight:600;color:#94A3B8}
.cr-wmore[open] > summary svg{transform:rotate(180deg)}
.cr-wmore .cve-wifi-hdr{display:none}
.cr-wmore .cve-wifi-sec{margin-top:8px}

/* ---------- responsive ---------- */
@media (max-width:1180px){
  .cve-editor-body.cr-body{grid-template-columns:minmax(0,1fr)}
  .cr-side{position:static}
  .cr-stage .cve-editor-player{width:min(100%,calc((100vh - 260px) * 1.7778))}
}
@media (max-width:720px){
  .cve-editor.cr-ed{padding:10px 12px 90px}
  .cr-ed .cve-editor-topbar{flex-wrap:wrap}
  .cr-ed .cve-editor-topbar .title-wrap{order:3;flex-basis:100%}
  .cr-tools-l,.cr-hint,.cr-muted{display:none}
  .cr-grad{margin-left:0;border-left:0;padding-left:0}
  .cr-stage{padding:48px 8px 14px}
  .cr-stage .cve-editor-player{min-width:0;width:100%}
  .cr-tool{height:32px;padding:0 10px}
}

/* ---------- licence kit under the canvas (#crKit, 2026-09-16) ---------- */
#crKit:empty{display:none}
.cr-kit{margin-top:16px;background:#fff;border:1px solid #E2E8F0;border-radius:18px;padding:18px;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.cr-kit.flash{animation:crKitFlash 1.4s ease}
@keyframes crKitFlash{0%,100%{box-shadow:0 1px 2px rgba(15,23,42,.04)}30%{box-shadow:0 0 0 4px rgba(249,115,22,.35)}}
.cr-kit > .cr-pill{margin:0 0 10px;white-space:normal}
.cr-kit-hd{display:flex;align-items:flex-start;gap:12px;margin-bottom:14px}
.cr-kit-hd > div{flex:1;min-width:0}
.cr-kit-hd b{display:block;font-size:15px;font-weight:900;letter-spacing:-.2px;color:#0F172A}
.cr-kit-hd > div > span{display:block;margin-top:2px;font-size:12.5px;color:#64748B;font-weight:500}
.cr-kit-hd em{flex:none;font-style:normal;font-size:11px;font-weight:800;color:#9A3412;background:#FFEDD5;border-radius:99px;padding:4px 10px}
.cr-kit-ic{flex:none;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#8B5CF6,#6D28D9)}
.cr-kit-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.cr-kit-card{display:flex;flex-direction:column;border:1px solid #E2E8F0;border-radius:14px;overflow:hidden;background:#fff;transition:border-color .15s,box-shadow .15s}
.cr-kit-card:hover{border-color:#FDBA74;box-shadow:0 10px 24px -16px rgba(15,23,42,.35)}
.cr-kit-card.on{border-color:#86EFAC;background:#F0FDF4}
.cr-kit-card.blank{border-style:dashed}
.cr-kit-art{position:relative;aspect-ratio:16/9;overflow:hidden;color:#fff}
.cr-kit-fig{position:absolute;right:30%;bottom:-6%;height:82%;filter:drop-shadow(0 6px 8px rgba(0,0,0,.4))}
.cr-kit-badge{position:absolute;left:7%;top:10%;max-width:60%;padding:4px 7px;border-radius:6px;background:rgba(15,23,42,.78);font-size:9.5px;font-weight:900;line-height:1.15;letter-spacing:.02em}
.cr-kit-qr{position:absolute;right:6%;bottom:9%;width:30px;height:30px;border-radius:6px;background:#fff;color:#0F172A;display:grid;place-items:center}
.cr-kit-map{position:absolute;left:50%;top:30%;transform:translate(-50%,-50%);opacity:.85}
.cr-kit-band{position:absolute;left:7%;bottom:12%;max-width:58%;padding:3px 6px;background:rgba(15,23,42,.85);font-size:9px;font-weight:900;line-height:1.2}
.cr-kit-line{position:absolute;inset:0;display:grid;place-items:center;padding:0 10%;text-align:center;font-size:15px;font-weight:900;letter-spacing:.02em;line-height:1.1;text-shadow:0 2px 6px rgba(0,0,0,.5)}
.cr-kit-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:10px}
.cr-kit-grid i{border-radius:6px;background:rgba(255,255,255,.16);box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
.cr-kit-grid i:first-child{background:rgba(255,255,255,.3)}
.cr-kit-blank{display:grid;place-items:center;background:#F8FAFC;color:#94A3B8}
.cr-kit-body{flex:1;display:flex;flex-direction:column;padding:11px 12px 12px}
.cr-kit-body small{font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#7C3AED}
.cr-kit-body b{margin-top:2px;font-size:13.5px;font-weight:900;color:#0F172A;letter-spacing:-.15px;line-height:1.25}
.cr-kit-body p{margin:4px 0 0;font-size:12px;line-height:1.45;color:#64748B}
.cr-kit-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px}
.cr-kit-tags span{font-size:10.5px;font-weight:700;color:#475569;background:#F1F5F9;border-radius:99px;padding:2px 8px}
.cr-kit-foot{display:flex;align-items:center;gap:6px;margin-top:auto;padding-top:10px}
.cr-kit-foot .cr-btn.sm{margin:0;width:100%}
.cr-btn.ghost{background:#fff;color:#0F172A;box-shadow:inset 0 0 0 1px #E2E8F0}
.cr-btn.ghost:hover:not(:disabled){background:#F8FAFC}
.cr-kit-on{flex:1;display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:800;color:#15803D}
.cr-kit-x{flex:none;width:30px;height:30px;border-radius:8px;border:1px solid #E2E8F0;background:#fff;color:#64748B;display:grid;place-items:center;cursor:pointer}
.cr-kit-x:hover{color:#DC2626;border-color:#FECACA}
.cr-kit-link{display:flex;align-items:center;gap:6px;width:100%;margin:10px 0 2px;padding:9px 11px;border:1px dashed #C4B5FD;border-radius:10px;background:#F5F3FF;color:#5B21B6;font:inherit;font-size:12px;font-weight:800;text-align:left;cursor:pointer}
.cr-kit-link svg:last-child{margin-left:auto}
@media(max-width:560px){.cr-kit{padding:14px}.cr-kit-list{grid-template-columns:1fr 1fr}.cr-kit-hd em{display:none}}

/* ---------- tools in the right column, above the preview (2026-09-21) ---------- */
.cr-side .cr-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px;border-radius:16px;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.cr-side .cr-tools-l{grid-column:1 / -1;padding:0 2px}
.cr-side .cr-tool{justify-content:center;gap:6px;min-width:0;padding:0 6px;height:36px;white-space:nowrap}
.cr-side .cr-tool span{overflow:hidden;text-overflow:ellipsis}
.cr-side .cr-grad{grid-column:1 / -1;margin:0;padding:9px 2px 0;border-left:0;border-top:1px solid #F1F5F9;justify-content:space-between}
@media (max-width:1180px){
  /* single column: the tools go back above the canvas, full width */
  .cr-side{display:contents}
  .cr-side .cr-tools{order:-1}
  .cr-side .cr-insp{order:1}
  .cr-side #crPreview{order:2}
  .cr-side > *:not(.cr-tools):not(.cr-insp):not(#crPreview){order:3}
}

/* ---------- framing dimensions: rulers around the frame + spec strip (2026-09-21) ---------- */
.cr-stage.cr-hasdims{padding:76px 46px 16px}
.cr-stage.cr-hasdims .cve-editor-player{width:min(100%,1100px,calc((100vh - 390px) * 1.7778))}
.cr-ruls{position:absolute;inset:0;pointer-events:none;z-index:4}
.cr-ruls[hidden]{display:none}
.cr-rul{position:absolute;display:flex;align-items:center;color:#64748B;font-size:11.5px;font-weight:800;font-variant-numeric:tabular-nums}
.cr-rul[hidden]{display:none}
.cr-rul i{flex:1;position:relative;background:rgba(71,85,105,.7);filter:drop-shadow(0 0 1px rgba(255,255,255,.9))}
.cr-rul b{padding:2px 8px;border-radius:99px;background:#fff;color:#334155;box-shadow:0 0 0 1px rgba(15,23,42,.08);white-space:nowrap}
.cr-rul-h{height:14px;margin-top:-7px}
.cr-rul-h i{height:1.5px}
.cr-rul-h i::before,.cr-rul-h i::after{content:'';position:absolute;top:-5px;width:1.5px;height:11px;background:inherit}
.cr-rul-h i:first-child::before{left:0}.cr-rul-h i:last-child::after{right:0}
.cr-rul-h i:first-child::after,.cr-rul-h i:last-child::before{display:none}
.cr-rul-v{width:14px;margin-left:-7px;flex-direction:column}
.cr-rul-v i{width:1.5px}
.cr-rul-v b{writing-mode:vertical-rl;transform:rotate(180deg);padding:8px 2px}
.cr-rul-v i::before,.cr-rul-v i::after{content:'';position:absolute;left:-5px;height:1.5px;width:11px;background:inherit}
.cr-rul-v i:first-child::before{top:0}.cr-rul-v i:last-child::after{bottom:0}
.cr-rul-v i:first-child::after,.cr-rul-v i:last-child::before{display:none}
.cr-spec{width:100%;max-width:1100px;margin-top:14px;display:flex;flex-direction:column;align-items:center;gap:10px}
.cr-spec:empty{display:none}
.cr-spec-tip{display:inline-flex;align-items:center;gap:7px;padding:6px 14px;border-radius:99px;background:#fff;border:1px solid #E2E8F0;font-size:12.5px;font-weight:800;color:#334155;box-shadow:0 6px 16px -10px rgba(15,23,42,.3)}
.cr-spec-tip svg{color:#F97316}
.cr-spec-row{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;width:100%}
.cr-spec-row > span{display:inline-flex;align-items:baseline;gap:7px;padding:8px 14px;border-radius:14px;background:#fff;border:1px solid #E2E8F0;font-size:12.5px;font-weight:600;color:#64748B;min-width:0}
.cr-spec-row small{font-size:10px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:#94A3B8;white-space:nowrap}
.cr-spec-row b{font-size:13.5px;font-weight:900;color:#0F172A;white-space:nowrap}
.cr-spec-row .warn{border-color:#FED7AA;background:#FFF7ED;color:#9A3412}
.cr-spec-row .warn b{color:#9A3412}
@media (max-width:720px){
  .cr-stage.cr-hasdims{padding:48px 8px 12px}
  .cr-ruls{display:none}
  .cr-spec-row > span{padding:7px 11px;flex:1 1 auto;flex-wrap:wrap}
}

/* ---------- QR styles ---------- */
.cr-qr-card.frm{aspect-ratio:auto;padding:5% 5% 3%;border-radius:11%;display:flex;flex-direction:column;gap:3%}
.cr-qr-card.frm .cr-qr-in{background:#fff;border-radius:7%;padding:4%;aspect-ratio:1;box-sizing:border-box}
.cr-qr-card.frm .cr-qr-in img{width:100%;height:100%;display:block}
.cr-qr-flbl{color:#fff;font-weight:800;text-align:center;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.15;padding:.15em 0 .25em;font-family:inherit;font-size:9px}
.cr-qr-prev.on{height:auto;min-height:150px;display:grid;place-items:center}
.cr-qr-prev .cr-qr-card{width:100%;background:transparent;box-shadow:none;padding:0;border-radius:0}
.cr-qr-prev .cr-qr-card.frm{padding:6% 6% 4%;border-radius:14px}
.cr-qr-prev .cr-qr-flbl{font-size:11px}
.cr-qs-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.cr-qs{border:1.5px solid #E2E8F0;background:#fff;border-radius:12px;padding:6px 6px 5px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;font:inherit;transition:border-color .14s,box-shadow .14s,transform .14s}
.cr-qs:hover{border-color:#CBD5E1;transform:translateY(-1px)}
.cr-qs.on{border-color:#EA580C;box-shadow:0 0 0 3px rgba(234,88,12,.13)}
.cr-qs-t{display:block;width:100%;aspect-ratio:1;border-radius:8px;background:#fff;overflow:hidden}
.cr-qs-t img{width:100%;height:100%;display:block}
.cr-qs em{font-style:normal;font-size:10.5px;font-weight:800;color:#475569;line-height:1}
.cr-qs.on em{color:#EA580C}
.cr-sws{display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding:2px 2px 4px}
.cr-sw{width:26px;height:26px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1.5px #D5DBE5;cursor:pointer;padding:0;position:relative;transition:box-shadow .14s,transform .14s}
.cr-sw:hover{transform:scale(1.08)}
.cr-sw.on{box-shadow:0 0 0 2.5px #0F172A}
.cr-sw.custom{background:conic-gradient(#f43f5e,#f59e0b,#84cc16,#06b6d4,#8b5cf6,#f43f5e);overflow:hidden}
.cr-sw.custom input{position:absolute;inset:-8px;width:calc(100% + 16px);height:calc(100% + 16px);opacity:0;cursor:pointer;border:0;padding:0}
.cr-msg.bad.off{display:none}

/* ---------- 2026-09-24: clear Fade on/off pill (the old .cr-sw switch was overridden by the colour-swatch .cr-sw) ---------- */
.cr-fade{position:relative;display:inline-flex;align-items:center;height:26px;border-radius:99px;background:#F1F5F9;border:1.5px solid #E2E8F0;cursor:pointer;font-size:11.5px;font-weight:800;letter-spacing:.02em;overflow:hidden;user-select:none}
.cr-fade input{position:absolute;opacity:0;width:0;height:0}
.cr-fade span{padding:0 11px;height:100%;display:inline-flex;align-items:center;color:#94A3B8;transition:background .15s,color .15s}
.cr-fade .cr-fade-off{background:#475569;color:#fff}
.cr-fade input:checked ~ .cr-fade-off{background:transparent;color:#94A3B8}
.cr-fade input:checked ~ .cr-fade-on{background:#F97316;color:#fff}
.cr-fade input:focus-visible ~ span{outline:2px solid rgba(249,115,22,.5);outline-offset:-2px}

/* ---------- kit v2: quick formats + clearer actions ---------- */
.cr-kit-sec{display:flex;align-items:center;gap:9px;margin:16px 0 10px;font-size:13px;color:#0F172A}
.cr-kit-sec:first-of-type{margin-top:4px}
.cr-kit-sec .n{flex:none;width:22px;height:22px;border-radius:50%;background:#0F172A;color:#fff;display:grid;place-items:center;font-size:11.5px;font-weight:900}
.cr-kit-sec b{font-weight:900;letter-spacing:-.15px}
.cr-kit-sec em{font-style:normal;font-size:11.5px;font-weight:700;color:#64748B;margin-left:auto;text-align:right}
.cr-fmt-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.cr-fmt{display:flex;flex-direction:column;border:1.5px solid #E2E8F0;border-radius:16px;overflow:hidden;background:#fff;transition:border-color .15s,box-shadow .15s}
.cr-fmt:hover{border-color:#FDBA74;box-shadow:0 12px 26px -18px rgba(15,23,42,.45)}
.cr-fmt.on{border-color:#22C55E;box-shadow:0 0 0 3px rgba(34,197,94,.14)}
.cr-fmt-prev{display:block;width:100%;padding:0;border:0;background:#0F172A;cursor:pointer;position:relative}
.cr-fp{position:relative;aspect-ratio:16/9;overflow:hidden;background:#0F172A;container-type:inline-size}
.cr-fp img,.cr-fp video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cr-fp-dim{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 55%,rgba(0,0,0,.28))}
.cr-fp i{position:absolute;font-style:normal;color:#fff;font-weight:900;line-height:1.1;transition:all .25s cubic-bezier(.3,.8,.3,1)}
.cr-fp .p-tl{left:5%;top:7%}.cr-fp .p-tr{right:5%;top:7%;text-align:right}.cr-fp .p-bl{left:5%;bottom:9%}.cr-fp .p-br{right:5%;bottom:9%;text-align:right}
.cr-fp-badge{display:flex;flex-direction:column;gap:2px;padding:4% 5%;border-radius:5px;background:rgba(15,23,42,.82);box-shadow:0 4px 10px rgba(0,0,0,.35)}
.cr-fp-badge b{font-size:clamp(7px,4.6cqw,12px);letter-spacing:.03em}
.cr-fp-badge small{font-size:clamp(5px,3cqw,8px);font-weight:800;letter-spacing:.1em;color:#FDBA74}
.cr-fp-strip{left:50%!important;right:auto!important;transform:translateX(-50%);max-width:88%;text-align:center;padding:2.2% 4%;background:rgba(15,23,42,.86);font-size:clamp(6px,4.4cqw,12px);letter-spacing:.04em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cr-fp-strip.p-tc{top:9%;bottom:auto}.cr-fp-strip.p-bc{bottom:9%;top:auto}
.cr-fp-line{padding:2% 3.5%;background:rgba(15,23,42,.86);font-size:clamp(6px,3.8cqw,11px);letter-spacing:.04em;max-width:52%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cr-fp i.cr-fp-qr{color:#0F172A}
.cr-fp-qr{width:17%;aspect-ratio:1;border-radius:5px;background:#fff;color:#0F172A;display:grid;place-items:center;box-shadow:0 4px 10px rgba(0,0,0,.35)}
.cr-fp-qr svg{width:70%;height:70%}
.cr-fmt-body{display:flex;flex-direction:column;flex:1;padding:12px 13px 13px}
.cr-fmt-body b{font-size:14px;font-weight:900;color:#0F172A;letter-spacing:-.15px}
.cr-fmt-body p{margin:3px 0 0;font-size:12px;line-height:1.45;color:#64748B}
.cr-fpos{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-top:10px}
.cr-fpos small{width:100%;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#94A3B8}
.cr-fpos-b{border:1.5px solid #E2E8F0;background:#fff;color:#475569;font:inherit;font-size:11.5px;font-weight:800;padding:4px 9px;border-radius:99px;cursor:pointer}
.cr-fpos-b:hover{border-color:#0F172A}
.cr-fpos-b.on{background:#0F172A;border-color:#0F172A;color:#fff}
.cr-fcta{display:flex;align-items:center;gap:8px;margin-top:auto;padding-top:12px}
.cr-btn.sm.full{width:100%;margin:0;padding:9px 14px;font-size:12.5px}
.cr-kit-rm{flex:none;display:inline-flex;align-items:center;gap:5px;margin-left:auto;padding:6px 10px;border-radius:9px;border:1px solid #E2E8F0;background:#fff;color:#64748B;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.cr-kit-rm:hover{color:#DC2626;border-color:#FECACA;background:#FEF2F2}
.cr-kit-on{background:#DCFCE7;border-radius:99px;padding:5px 11px;flex:none}
/* the layer just added pulses on the canvas */
.cr-el.kitflash{animation:crKitPulse .65s ease-in-out 3}
@keyframes crKitPulse{0%,100%{filter:none;transform:none}50%{filter:drop-shadow(0 0 10px #F97316) drop-shadow(0 0 3px #fff);transform:scale(1.06)}}
@media(max-width:820px){.cr-fmt-list{grid-template-columns:1fr}.cr-fmt{flex-direction:row}.cr-fmt-prev{width:44%;flex:none}.cr-kit-sec em{display:none}}
@media(max-width:560px){.cr-fmt{flex-direction:column}.cr-fmt-prev{width:100%}}

/* QA 2026-09-24: On your ad + Remove wrap instead of clipping in narrow format cards */
.cr-fcta{flex-wrap:wrap;row-gap:8px}.cr-kit-rm{margin-left:0}.cr-fcta .cr-kit-on{white-space:nowrap}
