/* The Smart CRM example (scripts/svc-crm.js), in the look of the CRM demo (styles/crm-demo.css): neutral graphite,
   white and grey, colour only in the small tags and the row of ticks. Dark frosted glass cards: the photo shows
   through them, blurred and darkened enough to keep the words easy to read. It only shows how it works, so nothing in it can be clicked. */
.cnl-crm{position:absolute;inset:0;z-index:2;overflow:hidden;background:rgba(8,9,10,.1);font-family:"Switzer","Instrument Sans",var(--cnl-sans);color:#ededee;user-select:none;-webkit-user-select:none;pointer-events:none;-webkit-font-smoothing:antialiased;transition:background-color .5s ease}
.cm-stage{position:absolute;left:0;top:0;width:760px;height:420px;transform-origin:0 0;line-height:1.4}
.cm-stage p,.cm-stage h4{margin:0;padding:0}
.cm-stage b{font-weight:600}
.cm-card,.cm-sources{box-sizing:border-box;border:1px solid rgba(255,255,255,.18);background:linear-gradient(165deg,rgba(38,41,48,.56),rgba(12,13,16,.5) 55%,rgba(14,15,19,.56));-webkit-backdrop-filter:blur(22px) saturate(1.45) brightness(.76);backdrop-filter:blur(22px) saturate(1.45) brightness(.76);box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 26px 50px -26px rgba(0,0,0,.75)}
.cm-card{border-radius:18px}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.cm-card,.cm-sources{background:rgba(20,20,21,.95)}}
.cm-who{display:flex;flex-direction:column;min-width:0;line-height:1.28}
.cm-who b{font-size:14px;color:#ededee}
.cm-who small{font-size:12px;color:#c6c7ce}
.cm-tag{display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:8px;font-size:11.5px;font-weight:500;white-space:nowrap}
.cm-t-blue{background:#1b2342;color:#a9bdf5;box-shadow:inset 0 0 0 1px #33457c}

/* the connected tools: one compact bar, centred over the cards */
.cm-sources{position:absolute;left:0;right:0;top:0;display:flex;align-items:center;gap:4px;width:max-content;height:46px;margin:0 auto;padding:0 6px 0 0;border-radius:999px}
.cm-connected{display:flex;align-items:center;gap:8px;height:22px;margin-right:6px;padding:0 15px 0 18px;border-right:1px solid rgba(255,255,255,.18);font-size:12px;font-weight:500;color:#d6d7dd}
.cm-connected i{width:7px;height:7px;border-radius:50%;background:#5fd08a;box-shadow:0 0 0 3px rgba(95,208,138,.2)}
.cm-src{display:flex;align-items:center;gap:7px;height:34px;box-sizing:border-box;padding:0 16px 0 13px;border-radius:999px;color:#e6e6ea;transition:background-color .3s ease,color .3s ease,box-shadow .3s ease}
.cm-src b{font-size:13px;font-weight:500}
.cm-src.is-on{background:#fff;color:#0e0e0f;box-shadow:0 8px 18px -8px rgba(0,0,0,.7)}
.cm-src.is-on b{font-weight:600}

/* left: the call, which gives way to the task list in the last step */
.cm-left{position:absolute;left:14px;top:62px;width:304px;height:400px}
.cm-before{position:absolute;left:0;top:0;width:304px;display:flex;flex-direction:column;gap:10px;transition:opacity .35s ease,translate .5s cubic-bezier(.23,1,.32,1)}
.cm-before.is-away{opacity:0;translate:-26px 0}
.cm-call{position:relative;flex:none;overflow:hidden;padding:15px 16px 0;opacity:0;translate:0 -18px;scale:.96;transform-origin:50% 0;transition:opacity .3s ease,height .5s cubic-bezier(.23,1,.32,1),translate .55s cubic-bezier(.25,1.3,.4,1),scale .55s cubic-bezier(.25,1.3,.4,1)}
.cm-call.is-on{opacity:1;translate:0 0;scale:1}
.cm-call-head{display:flex;align-items:center;gap:12px}
.cm-ring{display:flex;flex:none;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.11);color:#fff;transition:background-color .3s ease,color .3s ease}
.cm-call.is-ringing .cm-ring{background:#2f8f5b;color:#fff;animation:cm-ring 1.1s ease-out 3}
@keyframes cm-ring{0%{box-shadow:0 0 0 0 rgba(76,176,106,.6)}100%{box-shadow:0 0 0 13px rgba(76,176,106,0)}}
.cm-call-head .cm-who b{font-size:16px}
/* the phone number is what the match is made on, so it lights up in both places */
.cm-phone{align-self:flex-start;margin-left:-5px;padding:0 5px;border-radius:6px;font-variant-numeric:tabular-nums;box-shadow:inset 0 0 0 1px transparent;transition:background-color .3s ease,box-shadow .3s ease}
.cm-stage .cm-phone.is-on{background:rgba(255,255,255,.13);box-shadow:inset 0 0 0 1px rgba(255,255,255,.5)}
.cm-talk{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:13px;padding-top:12px;border-top:1px solid rgba(255,255,255,.13)}
.cm-stage .cm-talk p{box-sizing:border-box;max-width:250px;padding:8px 11px;border-radius:12px 12px 12px 4px;background:rgba(255,255,255,.1);font-size:13px;line-height:1.45;opacity:0;translate:0 10px;transition:opacity .3s ease,translate .45s cubic-bezier(.23,1,.32,1)}
.cm-stage .cm-talk p+p{align-self:flex-end;border-radius:12px 12px 4px 12px;background:rgba(255,255,255,.17)}
.cm-stage .cm-talk p.is-on{opacity:1;translate:0 0}
.cm-talk p small{display:block;font-size:11px;color:#c6c7ce}
.cm-stage mark{padding:1px 0;background:linear-gradient(#ededee,#ededee) 0 0/0 100% no-repeat;color:inherit;-webkit-box-decoration-break:clone;box-decoration-break:clone;transition:background-size .5s cubic-bezier(.65,0,.35,1),color .3s ease .15s}
.cm-stage mark.is-on{background-size:100% 100%;color:#0e0e0f}
.cm-setting{display:flex;align-items:center;gap:6px;font-size:11.5px;color:#8ee5b0;opacity:0;transition:opacity .35s ease}
.cm-setting.is-on{opacity:1}
.cm-fly{position:absolute;left:0;top:0;z-index:5;padding:3px 8px;border-radius:7px;background:#ededee;color:#0e0e0f;font-size:13px;font-weight:600;white-space:nowrap;box-shadow:0 12px 22px -8px rgba(0,0,0,.8)}
.cm-fly.is-go{transition:translate .58s cubic-bezier(.65,0,.25,1)}

/* the other case: it is not sure, so it asks. Dashed, so it reads as "not what is happening here" */
.cm-unsure{padding:14px 16px 15px;border:1.5px dashed rgba(255,255,255,.42);opacity:0;visibility:hidden;translate:0 16px;scale:.97;transition:opacity .35s ease,translate .5s cubic-bezier(.23,1,.32,1),scale .5s cubic-bezier(.23,1,.32,1),visibility 0s linear .35s}
.cm-unsure.is-on{opacity:1;visibility:visible;translate:0 0;scale:1;transition-delay:0s}
.cm-else{display:block;font-size:11px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:#c6c7ce}
.cm-unsure h4{margin-top:3px!important;font-family:inherit;font-size:15px;font-weight:600;letter-spacing:0;color:#ededee}
.cm-stage .cm-unsure p{margin-top:5px;font-size:12.5px;color:#e0e1e6}
.cm-pick{display:flex;gap:8px;margin-top:9px}
.cm-pick span{display:flex;align-items:center;height:27px;padding:0 13px;border:1px solid rgba(255,255,255,.22);border-radius:9px;background:rgba(255,255,255,.09);font-size:12px;font-weight:600}
.cm-meter{display:flex;align-items:center;gap:10px;margin-top:11px}
.cm-meter b{font-size:12px;color:#ffb985}

/* the row of ticks: how sure the match is, always with the word beside it */
.cm-ticks{display:inline-flex;align-items:center;gap:2px;height:16px}
.cm-ticks i{width:4px;height:14px;border-radius:1.5px;background:rgba(255,255,255,.16);transition:background-color .28s ease calc(var(--i) * 45ms)}
.cm-ticks i.is-on{background:var(--c)}

/* the task list */
.cm-tasks{position:absolute;left:0;top:0;width:304px;overflow:hidden;opacity:0;visibility:hidden;translate:0 18px;scale:.97;transition:opacity .35s ease,translate .55s cubic-bezier(.23,1,.32,1),scale .55s cubic-bezier(.23,1,.32,1),visibility 0s linear .35s}
.cm-tasks.is-on{opacity:1;visibility:visible;translate:0 0;scale:1;transition-delay:0s}
.cm-tasks-head{display:flex;align-items:center;gap:8px;height:46px;padding:0 16px}
.cm-tasks-head b{font-size:15px}
.cm-count{min-width:24px;height:19px;border-radius:7px;background:rgba(255,255,255,.12);color:#eeeef1;font-size:11.5px;line-height:19px;text-align:center}
.cm-new{display:grid;grid-template-rows:0fr;transition:grid-template-rows .5s cubic-bezier(.23,1,.32,1)}
.cm-new>div{min-height:0;overflow:hidden}
.cm-new.is-on{grid-template-rows:1fr}
.cm-new .cm-task{background:rgba(255,255,255,.12);box-shadow:inset 3px 0 0 #fff}
.cm-new .cm-due{background:#ededee;color:#0e0e0f;box-shadow:none}
.cm-task{display:flex;align-items:center;gap:11px;min-height:56px;box-sizing:border-box;padding:10px 16px;border-top:1px solid rgba(255,255,255,.12)}
.cm-box{flex:none;width:15px;height:15px;border:1.5px solid rgba(255,255,255,.45);border-radius:4px}
.cm-task .cm-who{flex:1}
.cm-task .cm-who b{font-size:13.5px}
.cm-task .cm-who small{font-size:11.5px}
.cm-due{display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:8px;background:rgba(255,255,255,.08);box-shadow:inset 0 0 0 1px rgba(255,255,255,.2);font-size:11.5px;font-weight:600;color:#eeeef1}

/* right: the customer record */
.cm-record{position:absolute;left:330px;top:62px;width:416px;overflow:hidden}
.cm-record-head{display:flex;align-items:center;height:40px;padding:0 16px;border-bottom:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.045)}
.cm-record-head b{font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:#d6d7dd}
.cm-body{position:relative;padding:14px 16px 8px}
.cm-wait{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;transition:opacity .3s ease}
.cm-wait-av{width:52px;height:52px;border:1.5px dashed rgba(255,255,255,.34);border-radius:50%}
.cm-wait i{width:170px;height:8px;border-radius:4px;background:rgba(255,255,255,.11)}
.cm-wait i:nth-of-type(2){width:130px}.cm-wait i:nth-of-type(3){width:100px}
.cm-wait p{margin-top:6px!important;font-size:12.5px;color:#d0d1d7}
.cm-found>*{opacity:0;translate:0 10px;transition:opacity .3s ease,translate .45s cubic-bezier(.23,1,.32,1)}
.is-found .cm-wait{opacity:0}
.is-found .cm-found>*{opacity:1;translate:0 0}
.is-found .cm-found>:nth-child(2){transition-delay:.07s}
.is-found .cm-found>:nth-child(3){transition-delay:.14s}
.is-found .cm-found>:nth-child(4){transition-delay:0s}
.is-found .cm-found>:nth-child(5){transition-delay:.21s}
.is-found .cm-found>:nth-child(6){transition-delay:.28s}
.cm-person{display:flex;align-items:center;gap:11px}
.cm-face{flex:none;width:42px;height:42px;border-radius:50%;object-fit:cover}
.cm-person .cm-who{flex:1}
.cm-person .cm-who b{font-size:17px}
.cm-open{background:#ededee;color:#0e0e0f;font-weight:600;opacity:0;scale:.8;transition:opacity .3s ease,scale .45s cubic-bezier(.25,1.4,.4,1)}
.has-task .cm-open{opacity:1;scale:1}
.cm-match{display:flex;align-items:center;gap:11px;margin-top:13px;padding:9px 12px;border:1px solid rgba(255,255,255,.13);border-radius:12px;background:rgba(255,255,255,.07)}
.cm-match .cm-who{flex:1}
.cm-match .cm-who small{font-size:11.5px}
.cm-match .cm-who b{font-size:13px;margin-top:1px}
.cm-sure{min-width:30px;font-size:12.5px;color:#8ee5b0;opacity:0;transition:opacity .35s ease .4s}
.cm-sure.is-on{opacity:1}
.cm-stage .cm-label{margin:14px 0 3px;font-size:10.5px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:#c6c7ce}
.cm-sum{display:grid;grid-template-rows:0fr;transition:grid-template-rows .55s cubic-bezier(.23,1,.32,1),opacity .35s ease,translate .45s cubic-bezier(.23,1,.32,1)!important}
.cm-sum>div{min-height:0;overflow:hidden}
.cm-sum.is-on{grid-template-rows:1fr}
.cm-entry{position:relative;display:flex;gap:11px;padding:7px 0}
.cm-eic{display:flex;flex:none;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid rgba(255,255,255,.17);border-radius:9px;background:rgba(255,255,255,.07);color:#eeeef1}
.cm-etx{display:flex;flex:1;flex-direction:column;min-width:0}
.cm-etx>span:first-child{display:flex;justify-content:space-between;gap:8px;line-height:1.3}
.cm-etx b{font-size:12.5px}
.cm-etx small{font-size:11px;color:#c6c7ce}
.cm-ebody{margin-top:2px;font-size:12.5px;line-height:1.45;color:#dcdde2}
/* the newest entry sits on its own lighter pane, so the eye finds it first */
.cm-sum{margin:0 -9px}
.cm-sum .cm-entry{margin-bottom:3px;padding:8px;border:1px solid rgba(255,255,255,.18);border-radius:12px;background:rgba(255,255,255,.11)}
.cm-sum .cm-eic{background:#fff;border-color:#fff;color:#0e0e0f}
.cm-sum .cm-ebody{color:#fff}

/* showing an earlier step as finished happens at once, with nothing sliding about */
.cm-stage.is-jump *{transition:none!important}

.cm-sample{position:absolute;right:14px;bottom:8px;margin:0;color:#fff;font-size:11px;font-weight:500;text-shadow:0 1px 3px rgba(0,0,0,.85),0 0 10px rgba(0,0,0,.6)}
.cm-sr{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media (prefers-reduced-motion:reduce){.cnl-crm,.cnl-crm *{transition:none!important;animation:none!important}}

/* arriving: the dimming fades in, then the tools, the record and the left-hand card rise one after the other. Each
   piece of glass fades itself (fading a wrapper would switch its blur off until the fade ended) */
.cnl-canvas.has-pop.is-in .cm-sources,.cnl-canvas.has-pop.is-in .cm-card{animation:cm-arrive .65s cubic-bezier(.23,1,.32,1) var(--d) backwards}
@keyframes cm-arrive{from{opacity:0;translate:0 22px;scale:.96}}
.cm-sources{--d:.06s}
.cm-record{--d:.18s}
.cm-left .cm-card{--d:.3s}
.cnl-canvas.has-pop .cm-sample{transition:opacity .4s ease .1s}
.cnl-canvas.has-pop:not(.is-in) .cnl-crm{background-color:rgba(8,9,10,0)}
.cnl-canvas.has-pop:not(.is-in) .cm-sources,.cnl-canvas.has-pop:not(.is-in) .cm-stage .cm-card{opacity:0;translate:0 22px;scale:.96;transition:opacity .22s ease,translate .22s ease,scale .22s ease}
.cnl-canvas.has-pop:not(.is-in) .cm-sample{opacity:0;transition-delay:0s;transition-duration:.2s}

/* this page only: the active step takes the demo's graphite, and the example's side gets a little more room */
.cnl-canvas{--cnl-accent:#111}
@media (min-width:1024px){.cnl-canvas-pin{grid-template-columns:minmax(0,3.9fr) minmax(0,8.1fr);gap:40px}}
/* short laptop screens: the four steps sit a little closer, so the open step is never cut off at the bottom */
@media (min-width:1024px) and (max-height:700px){.cnl-canvas-copy .cnl-steps{margin-top:20px}.cnl-canvas-copy .cnl-step-btn{padding:12px 0}.cnl-canvas-copy .cnl-step-body p{padding-bottom:14px}.cnl-canvas-copy .cnl-canvas-text{margin-top:14px}}
