.sw-onboarding[hidden],.sw-onboarding [hidden],.sw-onboarding-support[hidden]{display:none!important}.sw-onboarding{position:fixed;right:24px;bottom:24px;z-index:130;width:min(370px,calc(100vw - 32px));font-family:inherit;filter:drop-shadow(0 5px 18px #09244322)}.sw-onboarding-toggle{display:flex;align-items:center;gap:12px;border:1px solid #caddff;background:white;color:#10253f;border-radius:40px;padding:10px 16px 10px 10px;cursor:pointer;font-family:inherit;font-size:16px;font-weight:600;line-height:1.4;margin-left:auto;box-shadow:0 0 0 4px #e5efff}.sw-onboarding-toggle[aria-expanded=true]{width:100%;border-radius:16px 16px 0 0;background:#0866ff;color:white;box-shadow:none;border-color:#0866ff}.sw-onboarding-toggle>span:nth-child(2){flex:1;text-align:left;max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sw-onboarding-progress{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border-radius:50%;background:radial-gradient(closest-side,white 76%,transparent 78%),conic-gradient(#0866ff var(--progress),#d9e5fa 0);color:#10253f;font-size:12px;font-weight:800}#sw-onboarding-panel{background:white;border:1px solid #dce4ee;border-top:0;border-radius:0 0 16px 16px;max-height:min(620px,calc(100dvh - 150px));overflow-y:auto}.sw-onboarding-step{display:flex;gap:12px;align-items:flex-start;padding:15px 18px;width:100%;text-align:left;background:white;border:0;border-bottom:1px solid #e8edf3;cursor:pointer;color:#10253f;font-family:inherit}.sw-onboarding-step:hover{background:#f3f7ff}.sw-onboarding-step strong{font-weight:400;display:block;font-size:14px;line-height:1.45}.sw-onboarding-step small{display:block;color:#61738a;font-size:12px;line-height:1.5;margin-top:4px}.sw-onboarding-check{width:25px;height:25px;border:2px dashed #c4cdd9;border-radius:50%;flex-shrink:0;display:grid;place-items:center;font-weight:800;color:#299541}.sw-onboarding-step.is-complete .sw-onboarding-check{border:2px solid #38a64f}.sw-onboarding-step.is-complete strong{color:#778391;text-decoration:line-through}.sw-onboarding-step.is-complete small{display:none}.sw-onboarding-dismiss{display:block;margin:12px auto;padding:8px 12px;border:0;background:none;color:#61738a;text-decoration:none;font:inherit;font-size:12px;cursor:pointer}.sw-onboarding-finish{padding:12px 18px;margin:0;color:#247938;font-size:14px;line-height:1.5}.sw-onboarding-highlight{outline:3px solid #0866ff!important;outline-offset:4px;scroll-margin:130px}.sw-onboarding-guide{display:flex;align-items:center;gap:16px;padding:14px 16px;border:1px solid #9bbfff;background:#eef5ff;color:#16385f;border-radius:10px;font-size:14px;line-height:1.5;margin:0 0 16px;grid-column:1/-1;flex-basis:100%}.compact-add:has(.sw-onboarding-guide){flex-wrap:wrap}.sw-onboarding-guide button{border:0;border-radius:7px;background:#0866ff;color:white;padding:8px 12px;cursor:pointer;flex-shrink:0}.sw-onboarding-support{position:fixed;bottom:92px;left:24px;z-index:160;display:grid;gap:6px;width:min(290px,calc(100vw - 32px));background:white;border:1px solid #d5e0ef;border-radius:14px;padding:12px;box-shadow:0 8px 30px #10253f26}.sw-onboarding-support button{font:inherit;font-size:14px;text-align:left;padding:12px;border:0;border-radius:8px;background:#f2f6fc;color:#10253f;cursor:pointer}.sw-onboarding button:focus-visible,.sw-onboarding-support button:focus-visible{outline:3px solid #65a0ff;outline-offset:2px}@media(max-width:600px){.sw-onboarding{right:16px;bottom:18px}.sw-onboarding-support{left:16px;bottom:90px}.sw-onboarding-guide{align-items:flex-start;flex-direction:column}.sw-onboarding-toggle{font-size:14px}}

/* Compact checklist with guidance shown only inside the selected step. */
.sw-onboarding{width:min(330px,calc(100vw - 32px))}.sw-onboarding-toggle{gap:9px;padding:8px 13px 8px 8px;font-size:14px;box-shadow:0 0 0 3px #e5efff}.sw-onboarding-progress{width:36px;height:36px;font-size:11px}.sw-onboarding-step{padding:14px 16px;align-items:center}.sw-onboarding-check{width:23px;height:23px}

/* Completion burst stays anchored to the compact badge. */
.sw-onboarding.is-celebrating .sw-onboarding-progress{font-size:21px;line-height:1;font-weight:600}
.sw-onboarding.is-celebrating .sw-onboarding-toggle>span:last-child{display:none}
.sw-onboarding-confetti{position:absolute;right:65px;bottom:30px;width:0;height:0;pointer-events:none}
.sw-onboarding-confetti i{position:absolute;width:7px;height:11px;border-radius:2px;opacity:0;animation:sw-confetti 1.8s cubic-bezier(.15,.65,.35,1) var(--delay) forwards}
@keyframes sw-confetti{0%{opacity:1;transform:translate(0,0) rotate(0)}65%{opacity:1;transform:translate(var(--x),var(--y)) rotate(var(--spin))}100%{opacity:0;transform:translate(var(--x),35px) rotate(var(--spin))}}
@media(prefers-reduced-motion:reduce){.sw-onboarding-confetti{display:none}}

body.sw-first-routine-open { overflow: hidden; }
.sw-first-routine-modal[hidden] { display: none !important; }
.sw-first-routine-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 24px;
  background: rgba(8, 24, 44, .62);
  font-family: inherit;
}
.sw-first-routine-card {
  position: relative;
  width: min(100%, 540px);
  padding: 42px 44px 36px;
  border: 1px solid #dbe5f3;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(5, 23, 49, .24);
  color: #142238;
  text-align: center;
}
.sw-first-routine-close {
  position: absolute;
  top: 16px;
  right: 17px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #718198;
  font: inherit;
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
}
.sw-first-routine-close:hover { background: #f0f5fc; color: #142238; }
.sw-first-routine-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto 24px;
  border-radius: 23px;
  background: linear-gradient(145deg, #2582ff, #075ae2);
  box-shadow: 0 12px 24px rgba(8, 102, 255, .2);
  color: #fff;
}
.sw-first-routine-icon svg { width: 47px; height: 47px; }
.sw-first-routine-eyebrow {
  color: #0866ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}
.sw-first-routine-card h2 {
  margin: 13px 0 14px;
  color: #142238;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.16;
  letter-spacing: -.04em;
}
.sw-first-routine-card p {
  max-width: 420px;
  margin: 0 auto 28px;
  color: #52637c;
  font-size: 16px;
  line-height: 1.6;
}
.sw-first-routine-create {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border: 1px solid #0866ff;
  border-radius: 12px;
  background: #0866ff;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.sw-first-routine-create:hover { background: #0059e8; }
.sw-first-routine-later {
  margin-top: 15px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: #536887;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.sw-first-routine-later:hover { color: #0866ff; }
.sw-first-routine-card button:focus-visible { outline: 3px solid #86b7ff; outline-offset: 3px; }
.sw-company-setup-form { display:grid; gap:10px; text-align:left; margin:0 auto; max-width:420px; }
.sw-company-setup-form label { color:#142238; font-size:14px; font-weight:700; }
.sw-company-setup-form input { width:100%; min-height:50px; padding:10px 14px; border:1px solid #b9c8db; border-radius:10px; background:#fff; color:#142238; font:inherit; font-size:16px; }
.sw-company-setup-form input:focus-visible { outline:3px solid #86b7ff; outline-offset:2px; }
.sw-company-setup-form .sw-company-setup-error { margin:0; color:#b42318; font-size:13px; }
.sw-company-setup-form .sw-first-routine-create { margin-top:10px; }
.sw-company-setup-form .sw-first-routine-create:disabled { opacity:.6; cursor:wait; }
@media (max-width: 600px) {
  .sw-first-routine-modal { padding: 16px; }
  .sw-first-routine-card { padding: 36px 24px 28px; }
  .sw-first-routine-icon { width: 68px; height: 68px; margin-bottom: 20px; border-radius: 19px; }
  .sw-first-routine-icon svg { width: 39px; height: 39px; }
}
