/* ---- roadmap gate: greyed button + hover warning + toast ---- */
.nav-tools .is-locked{opacity:.45;cursor:not-allowed;position:relative}
.nav-tools .is-locked:hover{border-color:var(--line);color:var(--ink);background:var(--card)}
.nav-tools [data-tip]::after{content:attr(data-tip);position:absolute;top:calc(100% + 9px);left:50%;transform:translateX(-50%);background:var(--ink);color:var(--card);font:600 11px/1.3 inherit;white-space:nowrap;padding:7px 11px;border-radius:8px;opacity:0;pointer-events:none;transition:opacity .15s;z-index:60;box-shadow:0 10px 24px -10px rgba(0,0,0,.5)}
.nav-tools [data-tip]::before{content:"";position:absolute;top:calc(100% + 3px);left:50%;transform:translateX(-50%);border:6px solid transparent;border-bottom-color:var(--ink);opacity:0;transition:opacity .15s;z-index:60}
.nav-tools [data-tip]:hover::after,.nav-tools [data-tip]:hover::before{opacity:1}
.tp-toast{position:fixed;left:50%;bottom:30px;transform:translateX(-50%) translateY(20px);background:#2B2623;color:#fff;font:600 13.5px/1.4 inherit;padding:13px 18px;border-radius:12px;box-shadow:0 18px 50px -12px rgba(0,0,0,.5);z-index:100000;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;max-width:90vw;text-align:center}
.tp-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

/* ---- repository: video thumbnail + upload-card busy state ---- */
.repo-thumb.vid{background:linear-gradient(150deg,#2B2623,#413934)}
.repo-thumb.vid .repo-vic{width:46px;height:46px;stroke:#fff;fill:none;stroke-width:1.5}
.repo-thumb.vid .repo-vic path{fill:#fff;stroke:none}
.repo-tag.vid{background:#e43392}
.repo-add.busy{opacity:.55;pointer-events:none}

/* ---- credits modal: benefit-led explainer ---- */
.cm-bens-h{font-family:'Wix Madefor Display';font-weight:700;font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:#79706A;margin:20px 0 12px}
.cm-bens{display:grid;grid-template-columns:1fr 1fr;gap:11px 14px;margin-bottom:22px}
@media(max-width:560px){.cm-bens{grid-template-columns:1fr}}
.cm-ben{display:flex;gap:13px;align-items:flex-start;background:#fffdfb;border:1px solid #ede4db;border-radius:14px;padding:14px 15px}
.cm-ben-ic{flex:0 0 auto;width:38px;height:38px;border-radius:10px;background:#fbe9f3;display:flex;align-items:center;justify-content:center}
.cm-ben-ic svg{width:19px;height:19px;stroke:#b51e72;fill:none;stroke-width:1.8}
.cm-ben-t{font-family:'Wix Madefor Display';font-weight:700;font-size:14.5px;color:#2B2623;margin-bottom:4px}
.cm-ben-m{font-weight:600;font-size:11.5px;color:#b51e72;margin-left:4px}
.cm-ben p{font-size:12.5px;line-height:1.5;color:#5b524c;margin:0}

/* ---- header login CTA (shown when logged out) + greyed credit pill lock ---- */
.nav-login{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--accent);background:var(--accent);color:#fff;font:600 13px/1 inherit;padding:9px 15px;border-radius:9px;cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s}
.nav-login:hover{background:var(--accent-dark);border-color:var(--accent-dark)}
.nav-tools #headLogin{order:5}
.nav-tools .credit-pill .cp-lock{display:inline-flex;align-items:center;margin-right:1px}
.nav-tools .credit-pill .cp-lock svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:2}

/* ---- Brand Builder progress bar (14 sections) + account icon ---- */
.nav-tools [data-tip]{position:relative}
#toolBrand{position:relative}
#toolBrand .tool-clip{position:absolute;inset:0;overflow:hidden;border-radius:8px;z-index:0;pointer-events:none}
#toolBrand .tool-prog{position:absolute;left:0;bottom:0;height:10%;width:0;background:var(--accent);transition:width .35s ease}
#toolBrand .tool-face{position:relative;z-index:1;display:inline-flex;align-items:center;gap:7px}

.nav-acct{position:relative;display:inline-flex;align-items:center}
.acct-trigger{display:inline-flex;align-items:center;justify-content:center;background:none;border:none;cursor:pointer;padding:3px;color:var(--ink);transition:color .15s}
.acct-trigger:hover,.nav-acct:focus-within .acct-trigger,.nav-acct.open .acct-trigger{color:var(--accent)}
.acct-trigger .acct-ic{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.8}
.acct-menu{position:absolute;top:calc(100% + 7px);left:50%;width:max-content;max-width:90vw;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:0 18px 50px -16px rgba(0,0,0,.45);padding:8px;opacity:0;visibility:hidden;transform:translateX(-50%) translateY(-6px);transition:opacity .15s,transform .15s,visibility .15s;transition-delay:.35s;z-index:1100}
.acct-menu::before{content:"";position:absolute;left:0;right:0;top:-9px;height:9px}
.nav-acct:hover .acct-menu,.nav-acct:focus-within .acct-menu,.nav-acct.open .acct-menu{opacity:1;visibility:visible;transform:translateX(-50%);transition-delay:0s}
.acct-email{display:none;font-size:11px;line-height:1.4;color:var(--ink-soft);padding:6px 12px 9px;text-align:center;white-space:nowrap;border-bottom:1px solid var(--line);margin-bottom:6px}
.nav-acct.signed-in .acct-email{display:block}
.acct-action{display:block;width:100%;text-align:center;background:none;border:none;border-radius:8px;padding:9px 10px;font:600 13px/1 inherit;color:var(--ink);cursor:pointer;transition:background .12s,color .12s}
.acct-action:hover{background:var(--accent-tint);color:var(--accent-dark)}
.acct-admin{text-decoration:none;box-sizing:border-box;color:var(--accent-dark);border:1px solid var(--line);margin-bottom:6px}
.acct-admin:hover{background:var(--accent-tint);border-color:var(--accent)}


/* ---- Roadmap: sample banner + anchored guided tour ---- */
.rm-sample-banner{position:sticky;top:0;z-index:55;display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;background:#e43392;color:#fff;padding:11px 64px;font-size:13.5px;line-height:1.4;text-align:center}
.rm-sample-banner b{font-weight:700}
.rm-sb-btn{background:#fff;color:#b51e72;border:none;border-radius:8px;padding:8px 16px;font-family:'Wix Madefor Text',sans-serif;font-weight:700;font-size:13px;cursor:pointer;white-space:nowrap}
.rm-sb-btn:hover{background:#fbe9f3}
.rm-regen-banner{background:#2B2623}
.rm-regen-banner .rm-sb-btn{color:#2B2623}
.rm-regen-banner .rm-sb-btn:hover{background:#efe9e2}
/* anchored tip that points at the section being scrolled to */
.rm-tip{position:fixed;left:0;top:0;width:min(340px,92vw);background:#2B2623;color:#F7F3EE;border:1px solid rgba(247,243,238,.16);border-radius:16px;box-shadow:0 24px 70px -16px rgba(0,0,0,.6);padding:18px 20px;z-index:100002;animation:rmTourIn .25s ease}
@keyframes rmTourIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.rm-tip::after{content:"";position:absolute;width:0;height:0;border:9px solid transparent}
.rm-tip.arr-top::after{bottom:100%;left:var(--ax,24px);margin-left:-9px;border-bottom-color:#2B2623}
.rm-tip.arr-bottom::after{top:100%;left:var(--ax,24px);margin-left:-9px;border-top-color:#2B2623}
.rm-tip.arr-left::after{right:100%;top:var(--ay,24px);margin-top:-9px;border-right-color:#2B2623}
.rm-tip.arr-right::after{left:100%;top:var(--ay,24px);margin-top:-9px;border-left-color:#2B2623}
.rm-tour-step{font-family:'Wix Madefor Text',sans-serif;text-transform:uppercase;letter-spacing:.12em;font-size:10px;color:#e43392;margin-bottom:8px}
.rm-tip h4{font-family:'Wix Madefor Text',sans-serif;font-weight:600;font-size:17px;line-height:1.2;margin-bottom:7px;color:#fff}
.rm-tip p{font-size:13.5px;line-height:1.5;color:rgba(247,243,238,.75);margin-bottom:15px}
.rm-tour-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.rm-tour-skip{background:none;border:none;color:rgba(247,243,238,.5);font-family:inherit;font-weight:600;font-size:13px;cursor:pointer;padding:8px 4px}
.rm-tour-skip:hover{color:#F7F3EE}
.rm-tour-next{background:#e43392;border:none;color:#fff;font-family:inherit;font-weight:600;font-size:13px;padding:10px 22px;border-radius:9px;cursor:pointer}
.rm-tour-next:hover{background:#cf2682}
.rm-tour-dots{display:flex;gap:6px}
.rm-tour-dot{width:7px;height:7px;border-radius:50%;background:rgba(247,243,238,.25);transition:background .2s,transform .2s}
.rm-tour-dot.on{background:#e43392;transform:scale(1.25)}
.rm-tour-dot.done{background:rgba(247,243,238,.5)}
.rm-pulse{animation:rmPulse 1.4s ease-in-out infinite}
@keyframes rmPulse{0%{box-shadow:0 0 0 0 rgba(255,255,255,.55)}70%{box-shadow:0 0 0 18px rgba(255,255,255,0)}100%{box-shadow:0 0 0 0 rgba(255,255,255,0)}}

/* ---- custom colour picker (rounded, on-brand) ---- */
.cpick-sw{width:46px;height:38px;flex:none;border-radius:10px;border:1px solid var(--line);cursor:pointer;padding:0;box-shadow:inset 0 0 0 1px rgba(255,255,255,.4);transition:transform .1s,box-shadow .1s}
.cpick-sw:hover{transform:scale(1.04);box-shadow:inset 0 0 0 1px rgba(255,255,255,.5),0 4px 12px -4px rgba(0,0,0,.25)}
.cpick-pop{position:fixed;z-index:100400;width:232px;background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:0 24px 60px -16px rgba(0,0,0,.4);padding:14px}
.cpick-grip{height:16px;margin:-2px -4px 8px;display:flex;align-items:center;justify-content:center;cursor:grab;border-radius:8px;touch-action:none}
.cpick-grip:active{cursor:grabbing}
.cpick-grip::before{content:"";width:36px;height:4px;border-radius:3px;background:var(--line);transition:background .12s}
.cpick-grip:hover::before{background:var(--soft,#b0a8a0)}
.cpick-sv{position:relative;width:204px;height:150px;border-radius:12px;overflow:hidden;cursor:crosshair;border:1px solid var(--line)}
.cpick-svwhite,.cpick-svblack{position:absolute;inset:0}
.cpick-svwhite{background:linear-gradient(90deg,#fff,rgba(255,255,255,0))}
.cpick-svblack{background:linear-gradient(0deg,#000,rgba(0,0,0,0))}
.cpick-svknob{position:absolute;width:15px;height:15px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.4);transform:translate(-50%,-50%);pointer-events:none}
.cpick-hue{position:relative;width:204px;height:14px;margin-top:12px;border-radius:8px;cursor:pointer;background:linear-gradient(90deg,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00)}
.cpick-hueknob{position:absolute;top:50%;width:14px;height:18px;border-radius:5px;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.35);transform:translate(-50%,-50%);pointer-events:none}
.cpick-foot{display:flex;align-items:center;gap:9px;margin-top:12px}
.cpick-prev{width:32px;height:32px;flex:none;border-radius:8px;border:1px solid var(--line)}
.cpick-hex{flex:1;min-width:0;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--ink);font:600 13px/1 ui-monospace,Menlo,Consolas,monospace;text-transform:uppercase}
.cpick-hex:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-tint)}

/* ---- Repository: Brand assets panel ---- */
.repo-brand{margin:22px 0 6px}
.rb-head{margin-bottom:16px}
.rb-eyebrow{color:#e43392;margin-bottom:5px}
.rb-sub{font-size:13.5px;color:#5b524c;max-width:78ch;line-height:1.55}
.rb-sub b{color:#b51e72;font-weight:700}
.rb-group{margin:0 0 24px}
.rb-group h3{font-family:'Wix Madefor Text',sans-serif;font-size:14px;font-weight:600;margin:0 0 11px;color:#2B2623}
.rb-grid{display:flex;flex-wrap:wrap;gap:11px}
.rb-col,.rb-font{position:relative;display:flex;align-items:center;background:#fffdfb;border:1px solid #e7ded7;border-radius:13px}
.rb-col{gap:11px;padding:8px 34px 8px 8px;min-width:178px}
.rb-font{gap:13px;padding:10px 34px 10px 13px;min-width:196px}
.rb-sw{width:42px;height:42px;flex:none;border-radius:9px;border:1px solid #e7ded7;cursor:pointer;padding:0;box-shadow:inset 0 0 0 1px rgba(255,255,255,.4);transition:transform .1s}
.rb-sw:hover{transform:scale(1.05)}
.rb-col-meta,.rb-font-meta{display:flex;flex-direction:column;line-height:1.3;min-width:0}
.rb-col-name,.rb-font-name{font-size:13.5px;font-weight:600;color:#2B2623;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:128px}
.rb-col-hex{font:11px/1.3 ui-monospace,Menlo,Consolas,monospace;color:#79706A;letter-spacing:.02em}
.rb-font-prev{font-size:30px;line-height:1;color:#2B2623;min-width:36px;text-align:center}
.rb-font-role{font-size:10.5px;text-transform:uppercase;letter-spacing:.06em;color:#79706A;margin-top:2px}
.rb-logo{position:relative;display:flex;flex-direction:column;align-items:center;gap:7px;background:#fffdfb;border:1px solid #e7ded7;border-radius:13px;padding:13px 12px 11px;width:128px}
.rb-logo-img{width:100px;height:62px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.rb-logo-img img{max-width:100%;max-height:100%;object-fit:contain}
.rb-logo-name{font-size:12px;color:#2B2623;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.rb-tag{position:absolute;top:7px;right:8px;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;padding:2px 6px;border-radius:6px;background:#fbe9f3;color:#b51e72;cursor:default}
.rb-logo .rb-tag,.rb-logo .rb-del{top:7px;right:8px}
.rb-del{position:absolute;top:5px;right:6px;width:21px;height:21px;border:none;background:none;color:#79706A;font-size:18px;line-height:1;cursor:pointer;border-radius:6px;padding:0;display:flex;align-items:center;justify-content:center}
.rb-del:hover{background:#fdeaf2;color:#a51f5f}
.rb-add{display:inline-flex;align-items:center;gap:7px;background:#F7F3EE;border:1px dashed #d8cdbf;border-radius:13px;padding:0 18px;min-height:60px;color:#79706A;font-family:'Wix Madefor Text',sans-serif;font-weight:600;font-size:13px;cursor:pointer;transition:.14s}
.rb-add:hover{border-color:#e43392;color:#b51e72;background:#fffdfb}
.rb-add svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}
.rb-add-logo{flex-direction:column;justify-content:center;width:128px;min-height:96px;gap:6px;text-align:center}

/* ---- Repository folders (Stage 2) ---- */
.repo-newfolder{display:inline-flex;align-items:center;gap:6px;font-family:'Wix Madefor Text',system-ui,sans-serif;font-size:12.5px;font-weight:600;color:#b51e72;background:#fbe9f3;border:1px solid #f3c6dd;padding:7px 13px;border-radius:99px;cursor:pointer;transition:.14s}
.repo-newfolder svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2}
.repo-newfolder:hover{background:#f7d6e7;border-color:#e43392}
.repo-asset.guide-asset .rb-tag{top:9px;left:9px;right:auto;z-index:3}
.repo-asset.guide-asset:hover{border-color:#d8cdbf}

/* ---- Repository: rich content pages ---- */
.repo-content{margin:24px 0 6px}
.rc-grid{display:flex;flex-wrap:wrap;gap:12px}
.rc-card{display:flex;flex-direction:column;gap:6px;text-align:left;width:232px;min-height:110px;background:#fffdfb;border:1px solid #e7ded7;border-radius:13px;padding:14px 15px;cursor:pointer;transition:.16s}
.rc-card:hover{border-color:#e43392;transform:translateY(-2px);box-shadow:0 16px 34px -22px rgba(43,38,35,.3)}
.rc-card-t{font-family:'Wix Madefor Text',sans-serif;font-weight:600;font-size:15px;color:#2B2623;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rc-card-p{font-size:12.5px;line-height:1.5;color:#79706A;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.rc-add{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;width:232px;min-height:110px;background:#F7F3EE;border:1px dashed #d8cdbf;border-radius:13px;color:#79706A;font-family:'Wix Madefor Text',sans-serif;font-weight:600;font-size:13px;cursor:pointer;transition:.14s}
.rc-add:hover{border-color:#e43392;color:#b51e72;background:#fffdfb}
.rc-add svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}
.rc-editor{position:fixed;inset:0;z-index:100040;background:#F7F3EE;display:flex;flex-direction:column;animation:rmIn .25s ease}
.rc-ed-bar{display:flex;align-items:center;gap:14px;padding:15px 22px;border-bottom:1px solid #e7ded7;background:#fffdfb}
.rc-ed-title{flex:1;min-width:0;border:none;background:none;font-family:'Wix Madefor Text',sans-serif;font-weight:700;font-size:22px;color:#2B2623;letter-spacing:-.01em}
.rc-ed-title:focus{outline:none}
.rc-ed-actions{display:flex;gap:8px;flex:none}
.rc-ed-del{background:none;border:1px solid #e7ded7;color:#a51f5f;border-radius:8px;padding:8px 14px;font:600 13px/1 inherit;cursor:pointer}
.rc-ed-del:hover{background:#fdeaf2;border-color:#f3c6dd}
.rc-ed-done{background:#e43392;border:none;color:#fff;border-radius:8px;padding:9px 20px;font:600 13px/1 inherit;cursor:pointer}
.rc-ed-done:hover{background:#cf2682}
.rc-tools{display:flex;flex-wrap:wrap;align-items:center;gap:4px;padding:9px 22px;border-bottom:1px solid #e7ded7;background:#fffdfb}
.rc-tool{min-width:34px;height:32px;padding:0 8px;border:1px solid #e7ded7;background:#F7F3EE;border-radius:8px;color:#2B2623;font:600 14px/1 'Inter',system-ui,sans-serif;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.rc-tool:hover{border-color:#e43392;color:#b51e72;background:#fffdfb}
.rc-sep{width:1px;height:20px;background:#e7ded7;margin:0 4px}
.rc-ed-scroll{flex:1;overflow:auto;position:relative}
.rc-ed-body{max-width:760px;margin:0 auto;padding:34px 24px 90px;min-height:55vh;color:#2B2623;font-size:15.5px;line-height:1.65;outline:none}
.rc-ed-body:empty::before{content:'Start writing\2026 use the toolbar for headings, lists and tables.';color:#a89e95}
.rc-ed-body h1{font-family:'Wix Madefor Text',sans-serif;font-size:30px;font-weight:700;margin:24px 0 10px;letter-spacing:-.015em;line-height:1.2}
.rc-ed-body h2{font-family:'Wix Madefor Text',sans-serif;font-size:24px;font-weight:600;margin:20px 0 8px;letter-spacing:-.01em}
.rc-ed-body h3{font-family:'Wix Madefor Text',sans-serif;font-size:18px;font-weight:600;margin:16px 0 6px}
.rc-ed-body p{margin:0 0 11px}
.rc-ed-body ul,.rc-ed-body ol{margin:0 0 12px;padding-left:24px}
.rc-ed-body li{margin:3px 0}
.rc-table{border-collapse:collapse;width:100%;margin:8px 0 14px}
.rc-table th,.rc-table td{border:1px solid #d8cdbf;padding:7px 10px;text-align:left;font-size:14px}
.rc-table th{background:#fbe9f3;font-weight:600}

/* ---- Repository filters: stacked rows (brand / folders) ---- */
.repo-fbar{display:flex;justify-content:flex-end;padding:0 0 10px}
.repo-frow{display:flex;align-items:flex-start;gap:12px;padding:5px 0}
.repo-rowlab{flex:none;width:62px;padding-top:9px;font-family:'Wix Madefor Text',system-ui,sans-serif;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#a89e95;display:flex;flex-direction:column;gap:2px;line-height:1.2}
.repo-droghint{font-size:9px;font-weight:600;letter-spacing:.04em;text-transform:none;color:#c2b8ae}
.repo-pills{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;overflow-y:visible;max-width:100%;padding:2px 0 5px;scrollbar-width:thin}
.repo-pills-user{position:relative}
.repo-pills-empty{font-family:'Wix Madefor Text',system-ui,sans-serif;font-size:12.5px;color:#a89e95;padding:8px 2px}
.repo-chip-drag{cursor:grab;padding-left:12px}
.repo-chip-drag:active{cursor:grabbing}
.repo-chip-drag.dragging{opacity:.92;box-shadow:0 14px 30px -16px rgba(43,38,35,.45);border-color:#e43392;cursor:grabbing}

/* ---- Content editor: labelled toolbar + help + table tools ---- */
.rc-tool{display:inline-flex;align-items:center;gap:7px;min-width:auto;height:32px;padding:0 11px;border:1px solid #e7ded7;background:#F7F3EE;border-radius:8px;color:#2B2623;font:600 12.5px/1 'Wix Madefor Text',system-ui,sans-serif;cursor:pointer}
.rc-tool .rc-ic{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;border-radius:4px;background:#efe7dd;font-size:12px;line-height:1;color:#5b524c}
.rc-tool:hover{border-color:#e43392;color:#b51e72;background:#fffdfb}
.rc-tool:hover .rc-ic{background:#fbe9f3;color:#b51e72}
.rc-help{padding:10px 22px;font-family:'Wix Madefor Text',system-ui,sans-serif;font-size:12px;line-height:1.55;color:#79706A;background:#fffdfb;border-bottom:1px solid #e7ded7}
.rc-help b{color:#2B2623;font-weight:600}
.rc-tabletools{align-items:center;gap:6px;flex-wrap:wrap;padding:9px 22px;background:#fdf6ec;border-bottom:1px solid #efdfc8}
.rc-tbl-lab{font-family:'Wix Madefor Text',system-ui,sans-serif;font-size:10px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:#b8893a;margin-right:4px}
.rc-tbl{height:30px;padding:0 11px;border:1px solid #ead9bd;background:#fffdf8;border-radius:7px;color:#7a5b1e;font:600 12px/1 'Wix Madefor Text',system-ui,sans-serif;cursor:pointer}
.rc-tbl:hover{border-color:#d9a441;background:#fff;color:#5e4413}
.rc-tabletools .rc-sep{background:#ecdcc1}

/* ---- Repository filters v2: stacked rows, brand / your folders ---- */
.repo-row{display:flex;flex-direction:column;gap:7px;width:100%;padding:8px 0;border-top:1px solid #efe7dd}
.repo-row-top{padding-top:0;border-top:none}
.repo-row-top .repo-pills{padding-top:0}
.repo-rlab{font-family:'Wix Madefor Text',system-ui,sans-serif;font-size:10.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#9a8f85}
.repo-pills::-webkit-scrollbar{height:6px}
.repo-pills::-webkit-scrollbar-thumb{background:#e0d6cb;border-radius:3px}
.repo-pills::-webkit-scrollbar-track{background:transparent}

/* SortableJS drag states: chosen lifts, drag follows cursor, ghost is the drop outline */
.pill-chosen{}
.pill-drag{box-shadow:0 18px 34px -14px rgba(43,38,35,.5)!important;border-color:#e43392!important;background:#fffdfb!important;cursor:grabbing!important;opacity:1!important}
.pill-ghost{background:#fbe9f3!important;border:1.5px dashed #e43392!important;color:transparent!important;box-shadow:none!important}
.pill-ghost b{color:transparent!important}

/* ---- Table editor overlay (drag borders + round +/- handles) ---- */
.rc-tbl-ov{position:absolute;inset:0;pointer-events:none;z-index:5}
.rc-tbl-ov .rc-h{pointer-events:auto;position:absolute}
.rc-colsize{width:7px;cursor:col-resize;border-radius:3px}
.rc-rowsize{height:7px;cursor:row-resize;border-radius:3px}
.rc-colsize:hover,.rc-rowsize:hover{background:rgba(228,51,146,.28)}
.rc-addcol,.rc-addrow,.rc-delcol,.rc-delrow{width:18px;height:18px;border-radius:50%;border:none;display:flex;align-items:center;justify-content:center;font:700 13px/1 'Wix Madefor Text',system-ui,sans-serif;cursor:pointer;opacity:0;transition:opacity .12s,transform .12s,background .12s}
.rc-addcol,.rc-addrow{background:#e43392;color:#fff;box-shadow:0 3px 9px -3px rgba(228,51,146,.6)}
.rc-addcol:hover,.rc-addrow:hover{transform:scale(1.18);background:#cf2682}
.rc-delcol,.rc-delrow{background:#fff;color:#a51f5f;border:1px solid #f3c6dd;font-size:12px}
.rc-delcol:hover,.rc-delrow:hover{background:#fdeaf2;transform:scale(1.12)}
.rc-tbl-ov:hover .rc-addcol,.rc-tbl-ov:hover .rc-addrow,.rc-tbl-ov:hover .rc-delcol,.rc-tbl-ov:hover .rc-delrow{opacity:.5}
.rc-tbl-ov .rc-addcol:hover,.rc-tbl-ov .rc-addrow:hover,.rc-tbl-ov .rc-delcol:hover,.rc-tbl-ov .rc-delrow:hover{opacity:1}
.rc-ed-body .rc-table td,.rc-ed-body .rc-table th{overflow:hidden}

/* user-folder row wraps (not scroll) so the Sortable drag clone is never clipped */
.repo-pills-user{flex-wrap:wrap;overflow:visible}
.pill-fallback{opacity:.96!important;transform:rotate(1.5deg);box-shadow:0 20px 38px -14px rgba(43,38,35,.55)!important;border-color:#e43392!important;background:#fffdfb!important}

/* table-mode bar (Insert table + hint) under the toolbar */
.rc-tablebar{align-items:center;gap:14px;flex-wrap:wrap;padding:10px 22px;background:#fdf6ec;border-bottom:1px solid #efdfc8}
.rc-tb-ins{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 14px;border:1px solid #e7c89a;background:#fff;border-radius:8px;color:#7a5b1e;font:600 12.5px/1 'Wix Madefor Text',system-ui,sans-serif;cursor:pointer}
.rc-tb-ins:hover{border-color:#d9a441;background:#fffdf8}
.rc-tb-ins .rc-ic{background:#f6e7cf;color:#7a5b1e}
.rc-tb-hint{font-family:'Wix Madefor Text',system-ui,sans-serif;font-size:12px;line-height:1.5;color:#8a6d3a}
.rc-tb-hint b{color:#5e4413;font-weight:600}
.rc-tool.active{border-color:#e43392;background:#fbe9f3;color:#b51e72}
.rc-tool.active .rc-ic{background:#f6cfe2;color:#b51e72}

/* per-table Edit / Delete buttons (shown in table mode) */
.rc-tbtn{pointer-events:auto;position:absolute;height:24px;padding:0 11px;border-radius:7px;font:600 11.5px/1 'Wix Madefor Text',system-ui,sans-serif;cursor:pointer;display:flex;align-items:center}
.rc-edit{background:#e43392;color:#fff;border:none;box-shadow:0 4px 10px -4px rgba(228,51,146,.6)}
.rc-edit:hover{background:#cf2682}
.rc-edit.on{background:#2B2623}
.rc-deltable{background:#fff;color:#a51f5f;border:1px solid #f3c6dd}
.rc-deltable:hover{background:#fdeaf2;border-color:#e9a8c6}

/* self-contained pill drag: floating clone follows the cursor, dashed placeholder shows the drop slot */
.pill-flyer{position:fixed;z-index:100060;margin:0;pointer-events:none;border-radius:99px;box-shadow:0 18px 38px -14px rgba(43,38,35,.55);border:1px solid #e43392!important;background:#fffdfb!important;color:#2B2623!important;transform:rotate(1.5deg);opacity:.97;display:inline-flex;align-items:center;white-space:nowrap}
.pill-flyer b{color:#79706A!important}
.pill-ph{display:inline-flex;flex:none;border:1.5px dashed #e43392;border-radius:99px;background:#fbe9f3;box-sizing:border-box;transition:none}
.pill-dragging,.pill-dragging *{cursor:grabbing!important}
.pill-dragging .repo-chip-drag{transition:transform .14s ease}

/* ===== Repository left menu shell (Part 1) ===== */
.repo-shell{display:flex;height:100vh}
.repo-menu{flex:none;width:212px;height:100vh;overflow-y:auto;background:#fff;border-right:1px solid #e7ded7;padding:18px 12px 28px;transition:width .22s ease}
.repo-shell.menu-collapsed .repo-menu{width:0;padding:18px 0;border-right:none;overflow:hidden}
.repo-mtitle{font:700 10px/1 'Wix Madefor Text',system-ui,sans-serif;letter-spacing:.13em;text-transform:uppercase;color:#a89e95;padding:4px 10px 12px;white-space:nowrap}
.repo-mi{display:flex;align-items:center;gap:11px;width:100%;padding:9px 10px;border:none;background:none;border-radius:9px;cursor:pointer;color:#5b524c;font:600 12.5px/1.25 'Wix Madefor Text',system-ui,sans-serif;text-align:left;white-space:nowrap;margin:1px 0}
.repo-mi:hover{background:#f7f3ee}
.repo-mi.active{background:#fbe9f3;color:#b51e72}
.repo-mi-ic{flex:none;width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center}
.repo-mi-ic svg{width:20px;height:20px;fill:none;stroke:#9a8f85;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.repo-mi.active .repo-mi-ic svg{stroke:#cf2682}
.repo-mi-lab{overflow:hidden;text-overflow:ellipsis}
.repo-mdiv{height:1px;background:#efe7dd;margin:10px 8px}
.repo-menu-handle{position:fixed;top:50%;left:201px;transform:translateY(-50%);z-index:6;width:22px;height:48px;border:1px solid #e7ded7;border-left:none;border-radius:0 9px 9px 0;background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:3px 0 9px -5px rgba(43,38,35,.3);transition:left .22s ease}
.repo-menu-handle:hover{background:#fbe9f3}
.repo-shell.menu-collapsed .repo-menu-handle{left:0}
.repo-menu-handle svg{width:14px;height:14px;fill:none;stroke:#79706A;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .22s ease}
.repo-shell.menu-collapsed .repo-menu-handle svg{transform:rotate(180deg)}
.repo-main{flex:1;min-width:0;height:100vh;overflow-y:auto}

/* generic section body */
.repo-exgrid{display:flex;flex-wrap:wrap;gap:15px;margin-top:26px}
.repo-ex{width:202px;margin:0}
.repo-ex-thumb{height:142px;border:1px solid #e7ded7;border-radius:13px;background:#fffdfb;display:flex;align-items:center;justify-content:center}
.repo-ex-thumb svg{width:46px;height:46px;fill:none;stroke:#cdbfb0;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.repo-ex-cap{margin-top:9px;font:600 13px/1 'Wix Madefor Text',system-ui,sans-serif;color:#79706A}
.repo-soon{opacity:.6;cursor:default!important}
.rules-pill{display:inline-flex;align-items:center;gap:7px;padding:9px 15px;border:1px solid #e7ded7;background:#fffdfb;border-radius:99px;color:#5b524c;font:600 13px/1 'Wix Madefor Text',system-ui,sans-serif;cursor:pointer;transition:.14s}
.rules-pill svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.rules-pill:hover{border-color:#e43392;color:#b51e72}
.rules-pill.open{background:#2B2623;color:#fff;border-color:#2B2623}
.rules-block{margin-top:18px;border:1px solid #e7ded7;border-radius:14px;background:#fffdfb;overflow:hidden;animation:rmIn .2s ease}
.rules-body{padding:18px 22px}
.rules-body h2{font:600 18px/1.2 'Wix Madefor Text',sans-serif;letter-spacing:-.01em;color:#2B2623;margin:0 0 8px}
.rules-body p{margin:0;color:#5b524c;line-height:1.6;font-size:14.5px}

@media (max-width:720px){
  .repo-menu{position:fixed;left:0;top:0;z-index:7;box-shadow:6px 0 24px -10px rgba(43,38,35,.4)}
  .repo-shell.menu-collapsed .repo-menu{box-shadow:none}
}

/* ===== Section components (Part 2) ===== */
.sec-sub{font:700 12px/1 'Wix Madefor Text',system-ui,sans-serif;letter-spacing:.04em;text-transform:uppercase;color:#a89e95;margin:28px 0 12px}
.repo-note{margin-top:16px;padding:12px 16px;border:1px solid #f3d9ea;background:#fdf2f8;border-radius:12px;color:#9d2168;font-size:13.5px}
.rules-foot{padding:0 22px 18px}
.rules-edit{display:inline-flex;align-items:center;gap:7px;padding:8px 14px;border:1px solid #e7ded7;background:#fff;border-radius:99px;color:#5b524c;font:600 12.5px/1 'Wix Madefor Text',system-ui,sans-serif;cursor:pointer}
.rules-edit svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.rules-edit:hover{border-color:#e43392;color:#b51e72}
.rc-ed-titlestatic{flex:1;font:600 16px/1.3 'Wix Madefor Text',sans-serif;color:#2B2623;padding:6px 2px}

/* social template size tiles */
.social-grid{display:flex;flex-wrap:wrap;gap:16px;margin-top:4px}
.social-tile{width:150px;margin:0}
.social-frame{position:relative;border:1.5px dashed #d9cdbf;border-radius:11px;background:repeating-linear-gradient(45deg,#fffdfb,#fffdfb 9px,#faf4ee 9px,#faf4ee 18px);display:flex;align-items:center;justify-content:center;width:100%}
.social-frame.sq{aspect-ratio:1/1}
.social-frame.story{aspect-ratio:9/16}
.social-frame.wide{aspect-ratio:16/9}
.social-frame.cover{aspect-ratio:8/3}
.social-frame.tablet{aspect-ratio:3/4}
.social-dim{font:600 11.5px/1 'Wix Madefor Text',system-ui,sans-serif;color:#9a8f85;background:rgba(255,253,251,.85);padding:3px 7px;border-radius:6px;text-align:center}
.social-cap{margin-top:8px;font:600 13px/1 'Wix Madefor Text',system-ui,sans-serif;color:#2B2623}

/* ===== FIX: neutralise the global nav{display:flex} / body.brand-guide-page nav
   rule (specificity 0,1,2) that was hijacking the repo's <nav> elements and
   laying their children out in a horizontal row. These selectors are 0,2,0
   so they win and force the intended vertical layout. ===== */
.repo-shell .repo-menu{display:flex;flex-direction:column;align-items:stretch;gap:0;flex-wrap:nowrap;justify-content:flex-start}
.repo-screen .repo-filters{display:flex;flex-direction:column;align-items:stretch;gap:3px;flex-wrap:nowrap;justify-content:flex-start}

/* ===== Shared Assets — external share panel (Stage 3) ===== */
.share-panel{margin:18px 0 6px}
.share-loading{font:500 13px/1 'Wix Madefor Text',system-ui,sans-serif;color:#9a8f85;padding:10px 2px}
.share-card{border:1px solid #e7ded7;border-radius:14px;background:#fffdfb;padding:18px 20px}
.share-card.share-on{border-color:#f3d9ea}
.share-card.share-off{background:#faf7f3}
.share-h{display:flex;align-items:flex-start;gap:12px;justify-content:space-between}
.share-ic{width:22px;height:22px;fill:none;stroke:#b51e72;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none;margin-top:1px}
.share-t{font:600 15px/1.2 'Wix Madefor Text',system-ui,sans-serif;color:#2B2623}
.share-sub{font:500 12.5px/1.3 'Wix Madefor Text',system-ui,sans-serif;color:#79706A;margin-top:3px;word-break:break-all}
.share-toggle{flex:none;width:46px;height:26px;border-radius:99px;border:none;background:#d8cec4;position:relative;cursor:pointer;transition:background .18s}
.share-toggle.on{background:#e43392}
.share-knob{position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:left .18s;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.share-toggle.on .share-knob{left:23px}
/* repository folders as styled folder-icon tiles */
.repo-folders{display:flex;flex-wrap:wrap;align-items:flex-start;gap:14px 12px;overflow:visible;padding:4px 0 6px}
.repo-folder{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;width:fit-content;min-width:88px;max-width:152px;padding:11px 12px 9px;border:1px solid transparent;border-radius:13px;background:transparent;cursor:pointer;transition:background .14s,border-color .14s;user-select:none;font-family:'Wix Madefor Text',system-ui,sans-serif;flex:none}
.repo-folder:hover{background:#fffdfb;border-color:#ece2d8}
.repo-folder.active{background:#fdeef6;border-color:#f3c6dd}
.rf-ic{width:54px;height:43px;flex:none;display:block}
.rf-fold{fill:#fff;stroke:#c4b9ad;stroke-width:1.6;stroke-linejoin:round}
.repo-folder:hover .rf-fold{fill:#fffdfb;stroke:#b1a597}
.repo-folder.active .rf-fold{fill:#fbe0ef;stroke:#e43392}
.rf-allic{display:flex;align-items:center;justify-content:center;width:54px;height:43px}
.rf-allic svg{width:34px;height:34px;fill:none;stroke:#bdb1a5;stroke-width:1.7}
.repo-folder.rf-all:hover .rf-allic svg{stroke:#a99d90}
.repo-folder.rf-all.active .rf-allic svg{stroke:#e43392}
.rf-name{font-size:12.5px;font-weight:600;color:#2B2623;line-height:1.25;text-align:center;white-space:normal;overflow-wrap:break-word;word-break:break-word;max-width:100%}
.repo-folder.active .rf-name{color:#b51e72}
.repo-folder>b{font-size:9.5px;font-weight:700;color:#a89e95;letter-spacing:.02em;margin:0}
.repo-folder.active>b{color:#cf5fa0}
/* hover actions: share + delete (trash) — matching grey line icons, lingering ~1.8s so they stay clickable */
.rf-acts{position:absolute;top:4px;right:4px;display:flex;gap:4px;z-index:2}
.rf-act{display:inline-flex;align-items:center;justify-content:center;width:21px;height:21px;border-radius:7px;background:#fff;border:1px solid #e3d9cf;cursor:pointer;box-shadow:0 1px 3px rgba(43,38,35,.10);opacity:0;pointer-events:none;transition:opacity .16s 1.8s}
.repo-folder:hover .rf-act{opacity:1;pointer-events:auto;transition:opacity .12s 0s}
.rf-act svg{width:12px;height:12px;fill:none;stroke:#8b8077;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.rf-share:hover{border-color:#e43392}
.rf-share:hover svg{stroke:#e43392}
.rf-share.on{opacity:1;pointer-events:auto;transition:none;border-color:#e43392;background:#fbe9f3}
.rf-share.on svg{stroke:#e43392}
.rf-del:hover{border-color:#e0a39a;background:#fdf2f0}
.rf-del:hover svg{stroke:#c0392b}
/* "New folder" as a dashed tile (overrides the base pink pill) */
.repo-newfolder.rf-new{flex-direction:column;align-items:center;justify-content:center;gap:6px;width:fit-content;min-width:88px;padding:11px 12px 9px;border:1.5px dashed #e0d0c3;border-radius:13px;background:transparent;color:#b08aa0;flex:none}
.repo-newfolder.rf-new svg{width:22px;height:22px;stroke:#c79bb4;stroke-width:2;fill:none}
.repo-newfolder.rf-new:hover{border-color:#e43392;background:#fffdfb}
.repo-newfolder.rf-new:hover svg{stroke:#e43392}
.repo-newfolder.rf-new .rf-name{color:#9a8f85;font-size:12px}
.share-note{font:500 12.5px/1.5 'Wix Madefor Text',system-ui,sans-serif;color:#79706A;margin-top:12px}
.share-linkrow{display:flex;gap:8px;margin-top:14px}
.share-link{flex:1;min-width:0;border:1px solid #e7ded7;border-radius:9px;padding:9px 12px;font:500 13px/1 'Wix Madefor Text',system-ui,sans-serif;color:#2B2623;background:#fff}
.share-copy{flex:none;padding:9px 16px;border:none;border-radius:9px;background:#2B2623;color:#fff;font:600 13px/1 'Wix Madefor Text',system-ui,sans-serif;cursor:pointer}
.share-copy:hover{background:#b51e72}
.share-exp{font:500 12px/1 'Wix Madefor Text',system-ui,sans-serif;color:#9a8f85;margin-top:10px}
.share-row{display:flex;align-items:center;gap:12px;margin-top:14px;flex-wrap:wrap}
.share-lbl{font:600 12.5px/1 'Wix Madefor Text',system-ui,sans-serif;color:#5b524c;min-width:78px}
.share-opts{display:flex;gap:6px;flex-wrap:wrap}
.share-opt{padding:7px 12px;border:1px solid #e7ded7;border-radius:99px;background:#fff;color:#5b524c;font:600 12px/1 'Wix Madefor Text',system-ui,sans-serif;cursor:pointer}
.share-opt:hover{border-color:#e43392;color:#b51e72}
.share-cap{width:108px;border:1px solid #e7ded7;border-radius:9px;padding:8px 10px;font:500 13px/1 'Wix Madefor Text',system-ui,sans-serif}
.share-views{font:500 12px/1 'Wix Madefor Text',system-ui,sans-serif;color:#9a8f85}
.share-actions{margin-top:16px}
.share-regen{display:inline-flex;align-items:center;gap:7px;padding:9px 14px;border:1px solid #e7ded7;border-radius:9px;background:#fff;color:#5b524c;font:600 12.5px/1 'Wix Madefor Text',system-ui,sans-serif;cursor:pointer}
.share-regen svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.share-regen:hover{border-color:#e43392;color:#b51e72}
.share-mini{border:none;background:none;color:#b51e72;font:600 12.5px/1 'Wix Madefor Text',system-ui,sans-serif;cursor:pointer;text-decoration:underline;padding:0}

/* ===== Storage plan foot + tier picker ===== */
.repo-s-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px}
.repo-s-plan{font:600 11.5px/1 'Wix Madefor Text',system-ui,sans-serif;color:#9a8f85}
.repo-s-add{border:1px solid #f0d3e6;background:#fff;color:#b51e72;font:600 11.5px/1 'Wix Madefor Text',system-ui,sans-serif;padding:6px 11px;border-radius:99px;cursor:pointer}
.repo-s-add:hover{background:#fdf2f8;border-color:#e43392}
.stp-ov{position:fixed;inset:0;background:rgba(43,38,35,.55);display:flex;align-items:center;justify-content:center;z-index:100050;padding:20px}
.stp-modal{background:#fff;border-radius:18px;max-width:460px;width:100%;max-height:88vh;overflow:auto;box-shadow:0 24px 60px rgba(0,0,0,.3);padding:22px 24px}
.stp-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:14px}
.stp-head h3{margin:0;font:700 18px/1.2 'Wix Madefor Text',system-ui,sans-serif;color:#2B2623}
.stp-sub{margin:6px 0 0;font:500 12.5px/1.45 'Wix Madefor Text',system-ui,sans-serif;color:#79706A}
.stp-x{border:none;background:none;font-size:26px;line-height:1;color:#b8ada3;cursor:pointer;padding:0 2px}
.stp-x:hover{color:#2B2623}
.stp-list{display:flex;flex-direction:column;gap:8px}
.stp-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #ece4dc;border-radius:12px;padding:12px 14px}
.stp-row.on{border-color:#e43392;background:#fdf2f8}
.stp-info{display:flex;flex-direction:column;gap:2px}
.stp-gb{font:700 14.5px/1 'Wix Madefor Text',system-ui,sans-serif;color:#2B2623}
.stp-price{font:500 12px/1 'Wix Madefor Text',system-ui,sans-serif;color:#9a8f85}
.stp-pick{border:none;background:#e43392;color:#fff;font:600 12.5px/1 'Wix Madefor Text',system-ui,sans-serif;padding:9px 16px;border-radius:99px;cursor:pointer}
.stp-pick:hover{background:#b51e72}
.stp-pick.stp-low{background:#efe7df;color:#a79c92;cursor:not-allowed}
.stp-cur{font:600 12px/1 'Wix Madefor Text',system-ui,sans-serif;color:#b51e72}
.stp-dis{font:500 11.5px/1 'Wix Madefor Text',system-ui,sans-serif;color:#b8ada3}
.stp-note{margin:14px 0 0;font:500 11.5px/1.5 'Wix Madefor Text',system-ui,sans-serif;color:#9a8f85}
