/* Reseller onboarding uses the same light/dark CRM surfaces and server accents. */
.setup-guide{grid-column:1/-1;--guide-ink:var(--crm-ink,#213343);--guide-muted:var(--crm-muted,#607485);--guide-line:var(--crm-line,#dfe7eb);--guide-surface:var(--crm-surface,#fff);--guide-soft:var(--crm-soft,#f5f7fb);--guide-primary:var(--crm-primary,#366b8a);color:var(--guide-ink);width:100%;max-width:1260px;min-width:0;margin:0 auto}
.setup-guide [hidden]{display:none!important}.setup-guide :is(h2,h3,h4,p){margin:0}.setup-guide p{font-size:13px;line-height:1.75}.setup-guide .eyebrow{font-size:10px;letter-spacing:1.5px;font-weight:750;color:var(--guide-muted)}
.guide-header{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:4px 0 22px}.guide-header h2{font-size:30px;font-weight:750;letter-spacing:-.9px;line-height:1.25;margin:9px 0}.guide-header>div>p:last-child{color:var(--guide-muted);font-size:14px}.guide-header>.button{flex-shrink:0}
.guide-progress{height:5px;border-radius:100px;background:var(--guide-line);overflow:hidden;margin-bottom:26px}.guide-progress span{display:block;height:100%;background:#379477;border-radius:100px;transition:width .2s}
.guide-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:26px;align-items:start}.guide-nav{display:grid;gap:8px;position:sticky;top:24px;min-width:0}.guide-nav .guide-step{display:flex;align-items:center;justify-content:flex-start;gap:13px;text-align:left;white-space:normal;width:100%;min-width:0;min-height:74px;padding:15px;border:1px solid transparent;border-radius:14px;background:transparent;color:var(--guide-muted);box-shadow:none}.guide-nav .guide-step:hover{background:var(--guide-soft)}.guide-nav .guide-step.is-selected{background:var(--guide-surface);border-color:var(--guide-line);color:var(--guide-ink);box-shadow:0 8px 22px #21334306}.guide-step-number{display:grid;place-items:center;flex:0 0 31px;height:31px;border:1px solid var(--guide-line);border-radius:11px;font-size:13px;font-weight:750;background:var(--guide-soft);color:var(--guide-muted)}.guide-step.is-selected .guide-step-number{color:white;background:var(--guide-primary);border-color:var(--guide-primary)}.guide-step-label{display:grid;gap:6px;min-width:0}.guide-step-label strong{font-size:13px;font-weight:700;line-height:1.4}.guide-step-label small{font-size:11px;font-weight:500;color:var(--guide-muted);line-height:1.2}
.guide-stage{padding:28px;border:1px solid var(--guide-line);border-radius:22px;background:var(--guide-surface);box-shadow:0 8px 30px #21334304;display:grid;gap:23px;min-width:0}.guide-stage-head{padding-bottom:20px;border-bottom:1px solid var(--guide-line)}.guide-stage-head h2{font-size:23px;line-height:1.3;font-weight:750;letter-spacing:-.5px;margin-top:7px}.guide-stage-title:focus{outline:none}.guide-copy{display:grid;gap:8px}.guide-copy h3{font-size:17px;line-height:1.4;font-weight:720;letter-spacing:-.2px}.guide-copy p{color:var(--guide-muted);max-width:72ch}.guide-stage>.button{justify-self:start}
.guide-server-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:16px;min-width:0}.guide-server{--guide-provider:#607485;padding:20px;display:flex;flex-direction:column;align-items:flex-start;gap:14px;border:1px solid var(--guide-line);border-top:3px solid var(--guide-provider);border-radius:16px;min-width:0;background:var(--guide-surface)}.guide-server[data-provider=tvs]{--guide-provider:#8b65c6}.guide-server[data-provider=rush]{--guide-provider:#d86663}.guide-server[data-provider=wplay]{--guide-provider:#439b58}.guide-server header{display:flex;align-items:center;gap:8px;justify-content:space-between;flex-wrap:wrap;width:100%}.guide-server h4{font-size:15px;line-height:1.5;overflow-wrap:anywhere}.guide-server p{font-size:12px;color:var(--guide-muted);overflow-wrap:anywhere}.guide-server>.button{margin-top:auto;width:100%;min-height:43px;font-size:12px;white-space:normal}.guide-server .guide-server-badge{color:var(--guide-provider);background:color-mix(in srgb,var(--guide-provider) 12%,transparent);font-weight:750}
.guide-badge{font-size:10px;font-weight:650;padding:5px 8px;border-radius:7px;line-height:1.3;background:var(--guide-soft);color:var(--guide-muted);display:inline-flex;align-items:center;gap:5px}.guide-badge.is-done{background:#19866016;color:#218561}.guide-badge.is-pending{background:#c9901b18;color:#966615}
.guide-channel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.guide-channel{display:flex;align-items:flex-start;flex-direction:column;gap:14px;min-width:0;border:1px solid var(--guide-line);border-radius:17px;padding:21px;background:var(--guide-surface)}.guide-channel-featured{border-color:#52968170;box-shadow:inset 0 3px 0 #328260}.guide-channel h4{font-size:20px;line-height:1.3;letter-spacing:-.4px}.guide-channel>p{font-size:12px;color:var(--guide-muted)}.guide-channel-purpose{font-size:9px;letter-spacing:.7px;line-height:1.5;padding:0;background:transparent}.guide-channel-mark{width:38px;height:38px;border-radius:12px;background:#19866015;color:#218561;display:grid;place-items:center;font-size:23px;font-weight:800;margin-bottom:-5px}.guide-channel .guide-details{padding:0;border:none;background:transparent;width:100%;font-size:12px}.guide-channel>.button{margin-top:auto;white-space:normal;width:100%;font-size:12px;min-height:43px}
.guide-details{border:1px solid var(--guide-line);background:var(--guide-soft);border-radius:12px;padding:14px 17px;color:var(--guide-muted);font-size:12px;line-height:1.75;min-width:0}.guide-details summary{cursor:pointer;font-weight:650;color:var(--guide-ink);line-height:1.65}.guide-details ol{margin:13px 0 0;padding-left:19px}.guide-details li+li{margin-top:8px}.guide-optional{padding:19px 0 0;border-top:1px solid var(--guide-line);display:flex;align-items:center;justify-content:space-between;gap:16px}.guide-optional p{font-size:12px;color:var(--guide-muted)}.guide-optional .button{flex-shrink:0;min-height:42px}
.setup-guide .guide-footnote{font-size:11px;color:var(--guide-muted)}.guide-notice{border-left:3px solid #ba9546;padding:12px 15px;border-radius:0 10px 10px 0;background:#b28c3110;color:var(--guide-muted)}.guide-quickway{border:1px solid var(--guide-line);border-radius:16px;padding:22px;display:grid;gap:15px;background:var(--guide-soft)}.guide-actions{display:flex;flex-wrap:wrap;gap:10px}.guide-actions .button{font-size:12px;white-space:normal;min-height:42px}.guide-completion{display:grid}.guide-completion>div{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:12px;align-items:center;padding:15px 0;border-bottom:1px solid var(--guide-line)}.guide-completion strong{font-size:13px}.guide-completion .button{font-size:12px;min-height:40px}.guide-error{overflow-wrap:anywhere}
:root[data-theme=dark] .guide-badge.is-done,:root[data-theme=dark] .guide-channel-mark{color:#72cfa7}:root[data-theme=dark] .guide-badge.is-pending{color:#e2bd67}:root[data-theme=dark] .guide-server[data-provider=tvs]{--guide-provider:#ba9beb}:root[data-theme=dark] .guide-server[data-provider=rush]{--guide-provider:#eb9187}:root[data-theme=dark] .guide-server[data-provider=wplay]{--guide-provider:#8ecb75}
@media(max-width:1050px){.guide-layout{grid-template-columns:1fr;gap:19px}.guide-nav{position:static;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.guide-nav .guide-step{padding:12px 10px;gap:9px;min-height:69px}.guide-step-label strong{font-size:11px}.guide-step-label small{font-size:10px}.guide-step-number{flex-basis:26px;height:26px;border-radius:9px;font-size:11px}}
@media(max-width:650px){.guide-header{align-items:flex-start;gap:12px;padding-bottom:18px;flex-wrap:wrap}.guide-header h2{font-size:25px;letter-spacing:-.65px}.guide-header>div>p:last-child{font-size:12px}.guide-header>.button{min-height:40px;font-size:12px}.guide-progress{margin-bottom:18px}.guide-nav{gap:6px}.guide-nav .guide-step{align-items:flex-start;flex-direction:column;padding:9px;min-height:108px;gap:9px;border-color:var(--guide-line)}.guide-step-label{gap:5px}.guide-step-label strong{font-size:10px;line-height:1.4}.guide-step-label small{font-size:9px;line-height:1.4}.guide-step-number{flex-basis:auto;width:25px;height:25px}.guide-stage{padding:20px 16px;border-radius:17px;gap:21px}.guide-stage-head{padding-bottom:17px}.guide-stage-head h2{font-size:21px}.guide-copy h3{font-size:16px}.guide-copy p{font-size:12px}.guide-server-grid,.guide-channel-grid{grid-template-columns:1fr}.guide-server,.guide-channel{padding:18px}.guide-optional{align-items:flex-start;flex-direction:column;gap:12px}.guide-optional>.button{align-self:stretch}.guide-quickway{padding:17px}.guide-actions{flex-direction:column}.guide-actions .button{width:100%;text-align:center}.guide-stage>.button{width:100%;justify-self:stretch;white-space:normal}.guide-completion>div{grid-template-columns:45px minmax(0,1fr);gap:10px}.guide-completion .button{grid-column:2;justify-self:start}.guide-completion strong{font-size:12px}.guide-completion .guide-badge{font-size:9px;justify-content:center}}
@media(prefers-reduced-motion:reduce){.guide-progress span{transition:none}}

/* Compact return entry and the contextual Quickway registration action. */
.setup-guide-home{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px 24px;align-items:center;padding:24px;margin-bottom:26px;border-left:4px solid var(--crm-gold,#d2ad58);border-radius:16px;background:var(--crm-surface,#fff)}
.setup-guide-home[hidden]{display:none!important}.setup-guide-home>p,.setup-guide-home>h2{margin:0;grid-column:1}.setup-guide-home>.eyebrow{font-size:10px;letter-spacing:1.4px;color:var(--crm-muted,#607485)}.setup-guide-home>h2{font-size:22px;line-height:1.4;letter-spacing:-.45px}.setup-guide-home>.help{font-size:12px;line-height:1.7;max-width:64ch;color:var(--crm-muted,#607485)}.setup-guide-home>.button{grid-column:2;grid-row:1/span 3;margin:0;min-height:44px;white-space:normal}
.setup-quickway-entry{display:flex;align-items:center;gap:18px;padding:17px;border-radius:12px;border:1px solid var(--crm-line,#dfe7eb);background:var(--crm-soft,#f5f7fb);min-width:0}.setup-quickway-entry>.help{margin:0;flex:1;min-width:0;font-size:12px;line-height:1.7}.settings-card .setup-quickway-entry>.button{align-self:center;margin:0;flex-shrink:0;font-size:12px;min-height:42px;text-align:center;white-space:normal}
@media(max-width:650px){.setup-guide-home{grid-template-columns:1fr;gap:10px;padding:20px}.setup-guide-home>h2{font-size:20px}.setup-guide-home>.button{grid-column:1;grid-row:auto;margin-top:5px;width:100%}.setup-quickway-entry{flex-direction:column;align-items:stretch;padding:15px;gap:12px}.settings-card .setup-quickway-entry>.button{width:100%;align-self:stretch}}

@media(max-width:420px){.guide-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.guide-nav .guide-step{flex-direction:row;align-items:center;min-height:73px;padding:11px;gap:10px}.guide-step-label strong{font-size:11px}.guide-step-label small{font-size:10px}.guide-step-number{flex-shrink:0}}
.guide-purchase-option{display:grid;gap:12px;width:100%;padding-top:16px;border-top:1px solid var(--guide-line)}.guide-purchase-option p{font-size:11px;line-height:1.7}.guide-purchase-option>.button{width:100%;min-height:44px;font-size:12px;line-height:1.5;white-space:normal;border-color:color-mix(in srgb,var(--guide-provider) 45%,var(--guide-line));color:var(--guide-provider);background:color-mix(in srgb,var(--guide-provider) 7%,var(--guide-surface))}

/* Keep grouped step navigation aligned with the existing guide buttons. */
.guide-stage>.crm-dialog-navigation{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:flex-start}
.guide-stage>.crm-dialog-navigation>.button{white-space:normal;min-height:44px}
@media(max-width:650px){.guide-stage>.crm-dialog-navigation{flex-direction:column;align-items:stretch}.guide-stage>.crm-dialog-navigation>.button{width:100%;justify-self:stretch}}

/* Small inline identities: no logo tile, padding, border or background. */
.guide-brand{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;max-width:100%;padding:0;border:0;border-radius:0;background:none;box-shadow:none;flex-shrink:0;box-sizing:border-box}
.guide-brand[hidden]{display:none}.guide-brand>img,.guide-brand>.crm-provider-logo{width:22px;height:22px;max-width:100%;max-height:22px;object-fit:contain;border-radius:0;filter:none;box-shadow:none;border:0;background:none}.guide-brand .connection-symbol{display:flex;align-items:center;justify-content:center;width:22px;height:22px;margin:0;padding:0;border:0;border-radius:0;background:none;color:#128c55;box-shadow:none}.guide-brand svg{width:20px;height:20px}
.guide-brand[data-brand=asaas],.guide-brand[data-brand=asaas]>img{width:48px}
.guide-brand[data-brand=manychat]>img,.guide-brand[data-brand=cora]>img{object-fit:cover;object-position:left center}
.guide-brand[data-brand=manychat]>img,.guide-brand[data-brand=gate2b]>img,.guide-brand[data-brand=asaas]>img{filter:brightness(0)}
:root[data-theme=dark] .guide-brand[data-brand=manychat]>img,:root[data-theme=dark] .guide-brand[data-brand=gate2b]>img,:root[data-theme=dark] .guide-brand[data-brand=asaas]>img{filter:none}
:root[data-theme=dark] .guide-brand[data-brand=sendpulse]>img{filter:invert(1)}
.guide-provider-identity,.guide-brand-title{display:flex;flex-direction:row;align-items:center;gap:8px;min-width:0}.guide-provider-identity>strong{font-size:13px;color:var(--guide-provider,var(--guide-ink))}.guide-server>header{flex-wrap:wrap;align-items:center;gap:12px}
.guide-payment-servers{display:grid;gap:20px;min-width:0}.guide-payment-server{width:100%;box-sizing:border-box}.guide-gateway-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:100%}.guide-gateway{display:flex;flex-direction:column;align-items:flex-start;gap:13px;border:1px solid var(--guide-line);border-radius:12px;background:var(--guide-soft);padding:16px;min-width:0}.guide-gateway h4{margin:0;font-size:14px}.guide-gateway>.button{margin-top:auto;width:100%;min-height:44px;white-space:normal;font-size:12px}
@media(max-width:1100px){.guide-gateway-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.guide-gateway-grid{grid-template-columns:1fr}.guide-payment-server{padding:18px}}

/* Recommended gateway appears before the provider choices. */
.guide-quickway-recommended{border-color:var(--crm-gold,#d2ad58);background:color-mix(in srgb,var(--crm-gold,#d2ad58) 8%,var(--guide-surface));box-shadow:inset 0 3px 0 var(--crm-gold,#d2ad58)}
.guide-quickway-recommended>h3{font-size:18px;line-height:1.5;letter-spacing:-.2px}.guide-quickway-recommended>p{color:var(--guide-muted)}
.guide-quickway-recommended>.guide-quickway-signup{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:56px;padding:14px 20px;font-size:16px;font-weight:750;white-space:normal;text-align:center}
