.onboarding-tour {
  --tour-surface: var(--surface, #fff);
  --tour-soft: #f6f7f9;
  --tour-ink: var(--ink, #192238);
  --tour-muted: #747d8d;
  --tour-line: #e6e8ec;
  --tour-accent: var(--blue, #1749d3);
  --tour-accent-soft: #f0f4ff;
  container: onboarding-tour / inline-size;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  color: var(--tour-ink);
  text-align: left;
}
html[data-theme="dark"] .onboarding-tour {
  --tour-soft: #191919;
  --tour-muted: #aaa;
  --tour-line: #303030;
  --tour-accent-soft: #1a2234;
}
.tour-layout {
  display: grid;
  gap: 32px;
  align-items: center;
  min-width: 0;
}
.tour-intro h1 {
  margin: 0;
  font-size: var(--text-lg);
  line-height: 1.16;
  letter-spacing: -1.3px;
  font-weight: 550;
  text-align: left;
}
.tour-intro-copy {
  margin: 17px 0 27px;
  color: var(--tour-muted);
  font-size: var(--text-md);
}
.tour-features {
  display: grid;
  gap: 4px;
}
.tour-feature {
  display: flex;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  gap: 13px;
  padding: 14px 15px;
  border: 0;
  border-left: 2px solid var(--tour-line);
  border-radius: 0 9px 9px 0;
  background: transparent;
  color: var(--tour-ink);
  text-align: left;
  transition:
    background 180ms ease,
    border-color 180ms ease;
}
.tour-feature:hover {
  background: var(--tour-soft);
}
.tour-feature[aria-selected="true"] {
  background: var(--tour-soft);
  border-left-color: var(--tour-accent);
}
.tour-feature-icon {
  display: inline-flex;
  padding-top: 2px;
  color: var(--tour-muted);
}
.tour-feature[aria-selected="true"] .tour-feature-icon {
  color: var(--tour-accent);
}
.tour-feature strong {
  display: block;
  font-size: var(--text-md);
  font-weight: 550;
}
.tour-feature-description {
  display: block;
  margin-top: 5px;
  color: var(--tour-muted);
  font-size: var(--text-sm);
  line-height: 1.65;
}
.tour-preview-wrap,
.tour-product,
.tour-preview-body {
  min-width: 0;
}
.tour-preview-label {
  display: block;
  margin: 0 0 12px;
  color: var(--tour-muted);
  font-size: var(--text-sm);
  letter-spacing: 0.4px;
}
.tour-product {
  overflow: hidden;
  background: var(--tour-surface);
  border: 1px solid var(--tour-line);
  border-radius: 18px;
  box-shadow: 0 18px 50px #17243908;
}
.tour-product-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 16px 20px;
  border-bottom: 1px solid var(--tour-line);
}
.tour-product-header > strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-sm);
}
.tour-workspace-mark {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border: 1px solid var(--tour-line);
  border-radius: 10px;
  background: var(--tour-soft);
  color: var(--tour-accent);
  font-size: var(--text-sm);
}
.tour-workspace-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tour-product-presence {
  margin-left: auto;
  color: var(--tour-muted);
  font-size: var(--text-sm);
}
.tour-preview-body {
  min-height: 352px;
  font-size: 13px;
  line-height: 1.5;
}
.tour-lines {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 9px;
}
.tour-lines i {
  display: block;
  height: 6px;
  width: 80%;
  border-radius: 5px;
  background: var(--tour-line);
}
.tour-lines i + i {
  width: 55%;
  opacity: 0.6;
}
.tour-avatar {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 1px solid var(--tour-line);
  border-radius: 50%;
  background: var(--tour-soft);
  color: var(--tour-muted);
}
.tour-avatar svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  stroke-width: 1.5;
}
.tour-inbox {
  display: grid;
  grid-template-columns: 32% minmax(0, 1fr);
  min-height: 352px;
}
.tour-conversations {
  border-right: 1px solid var(--tour-line);
  padding: 18px 10px;
}
.tour-conversation {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 8px;
  margin-bottom: 6px;
  border-radius: 10px;
}
.tour-conversation.is-selected {
  background: var(--tour-accent-soft);
}
.tour-conversation.is-selected .tour-avatar {
  color: var(--tour-accent);
  background: var(--tour-surface);
}
.tour-unread {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tour-accent);
}
.tour-thread {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tour-thread-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--tour-line);
}
.tour-thread-heading .tour-lines {
  max-width: 100px;
}
.tour-resolved {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin-left: auto;
  border: 1px solid var(--tour-line);
  border-radius: 50%;
  color: var(--green);
}
.tour-resolved svg {
  width: 13px;
  height: 13px;
}
.tour-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 22px;
}
.tour-message {
  align-self: flex-start;
  max-width: 95%;
  padding: 13px 16px;
  border-radius: 14px 14px 14px 3px;
  background: var(--tour-soft);
}
.tour-message.is-reply {
  align-self: flex-end;
  border-radius: 14px 14px 3px 14px;
  background: var(--tour-accent-soft);
}
.tour-message svg {
  width: 13px;
  height: 13px;
  margin-left: 5px;
  color: var(--tour-accent);
}
.tour-typing {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}
.tour-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tour-muted);
  opacity: 0.45;
}
.tour-composer {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 20px 20px;
  padding: 10px 12px;
  border: 1px solid var(--tour-line);
  border-radius: 10px;
}
.tour-composer .tour-lines i {
  width: 60%;
}
.tour-composer .tour-lines i + i {
  display: none;
}
.tour-send {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--tour-accent-soft);
  color: var(--tour-accent);
}
.tour-send svg {
  width: 16px;
  height: 16px;
}
.tour-team-view,
.tour-reply-view,
.tour-insights-view {
  display: grid;
  place-items: center;
  min-height: 352px;
  padding: 28px 32px;
}
.tour-team-art {
  width: min(100%, 340px);
  text-align: center;
}
.tour-incoming {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 220px;
  max-width: 100%;
  padding: 20px;
  margin: 0 auto;
  border: 1px solid var(--tour-line);
  border-radius: 12px;
  background: var(--tour-surface);
  box-shadow:
    0 7px 0 -3px var(--tour-soft),
    0 8px 0 -3px var(--tour-line);
}
.tour-incoming > svg {
  width: 22px;
  height: 22px;
  color: var(--tour-accent);
}
.tour-branch {
  position: relative;
  height: 20px;
  width: calc(100% - 78px);
  margin: 34px auto 0;
  border: 1px solid var(--tour-line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}
.tour-branch::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -34px;
  width: 1px;
  height: 34px;
  background: var(--tour-line);
}
.tour-branch::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 20px;
  background: var(--tour-accent);
}
.tour-teammates {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.tour-teammate {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 16px;
  width: 78px;
  padding: 16px 12px;
  border: 1px solid var(--tour-line);
  border-radius: 12px;
  background: var(--tour-soft);
}
.tour-teammate .tour-avatar {
  width: 42px;
  height: 42px;
}
.tour-teammate .tour-avatar svg {
  width: 35px;
  height: 35px;
}
.tour-teammate .tour-lines {
  width: 100%;
}
.tour-teammate .tour-lines i {
  width: 100%;
}
.tour-teammate .tour-lines i + i {
  display: none;
}
.tour-teammate.is-assigned {
  border-color: var(--tour-accent);
  background: var(--tour-accent-soft);
}
.is-assigned .tour-avatar {
  color: var(--tour-accent);
  background: var(--tour-surface);
}
.tour-assignee-check {
  position: absolute;
  right: -7px;
  top: -7px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--tour-surface);
  background: var(--tour-accent);
  color: var(--tour-surface);
}
.tour-assignee-check svg {
  width: 12px;
  height: 12px;
}
.tour-assignment,
.tour-reply-ready {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--tour-muted);
}
.tour-assignment {
  margin-top: 22px;
}
.tour-assignment svg,
.tour-reply-ready svg {
  width: 13px;
  height: 13px;
  color: var(--green);
}
.tour-reply-art {
  width: min(100%, 410px);
}
.tour-shortcuts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.tour-shortcuts > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--tour-line);
  border-radius: 10px;
  color: var(--tour-muted);
  font-size: var(--text-sm);
}
.tour-shortcuts .is-selected {
  border-color: var(--tour-accent);
  color: var(--tour-accent);
  background: var(--tour-accent-soft);
}
.tour-shortcuts svg {
  width: 15px;
  height: 15px;
}
.tour-insert {
  display: grid;
  place-items: center;
  height: 48px;
  color: var(--tour-muted);
}
.tour-insert svg {
  transform: rotate(90deg);
}
.tour-reply-draft {
  padding: 22px;
  border: 1px solid var(--tour-line);
  border-radius: 14px;
  background: var(--tour-surface);
  box-shadow: 0 12px 32px #17243908;
}
.tour-reply-draft > p {
  margin: 0 0 18px;
  font-size: var(--text-md);
  letter-spacing: -0.3px;
}
.tour-reply-draft > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 25px;
}
.tour-insights-art {
  width: min(100%, 420px);
}
.tour-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.tour-stats > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
}
.tour-stats strong {
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: -1.4px;
}
.tour-stats strong > span {
  margin-left: 2px;
  font-size: var(--text-lg);
}
.tour-stats > div > span:last-child {
  grid-column: 1 / -1;
  color: var(--tour-muted);
  font-size: var(--text-sm);
}
.tour-stat-icon {
  grid-column: 2;
  grid-row: 1;
  color: var(--tour-muted);
}
.tour-stat-icon svg {
  width: 20px;
  height: 20px;
}
.tour-chart {
  margin-top: 26px;
  border-bottom: 1px solid var(--tour-line);
  background: repeating-linear-gradient(
    to top,
    var(--tour-line) 0,
    var(--tour-line) 1px,
    transparent 1px,
    transparent 45px
  );
}
.tour-bars {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  height: 160px;
}
.tour-bars > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
  gap: 8px;
}
.tour-bars span {
  display: block;
  width: 100%;
  max-width: 35px;
  height: 47%;
  border-radius: 6px 6px 0 0;
  background: var(--tour-accent);
  opacity: 0.28;
}
.tour-bars > div:nth-child(2) span {
  height: 36%;
}
.tour-bars > div:nth-child(3) span {
  height: 57%;
}
.tour-bars > div:nth-child(4) span {
  height: 48%;
}
.tour-bars > div:nth-child(5) span {
  height: 72%;
  opacity: 0.65;
}
.tour-bars > div:nth-child(6) span {
  height: 61%;
  opacity: 0.5;
}
.tour-bars > div:nth-child(7) span {
  height: 85%;
  opacity: 0.9;
}
.tour-bars small {
  color: var(--tour-muted);
  font-size: var(--text-sm);
  background: var(--tour-surface);
  width: 100%;
  text-align: center;
}
@container onboarding-tour (min-width: 820px) {
  .tour-layout {
    grid-template-columns: 350px minmax(0, 1fr);
    gap: 54px;
  }
}
@container onboarding-tour (max-width: 520px) {
  .tour-layout {
    gap: 26px;
  }
  .tour-feature {
    padding: 12px;
  }
  .tour-product-header {
    padding: 14px 16px;
  }
  .tour-inbox {
    grid-template-columns: 52px minmax(0, 1fr);
  }
  .tour-conversations {
    padding: 20px 8px;
  }
  .tour-conversation {
    padding: 12px 0;
    justify-content: center;
  }
  .tour-conversation .tour-lines,
  .tour-conversation .tour-unread {
    display: none;
  }
  .tour-conversation .tour-avatar {
    width: 28px;
    height: 28px;
  }
  .tour-conversation .tour-avatar svg {
    width: 24px;
    height: 24px;
  }
  .tour-thread-heading {
    padding: 16px 12px;
    gap: 8px;
  }
  .tour-thread-heading .tour-lines {
    max-width: 60px;
  }
  .tour-messages {
    padding: 18px 12px;
    font-size: var(--text-sm);
  }
  .tour-message {
    padding: 12px;
  }
  .tour-composer {
    margin: 0 12px 16px;
    padding: 8px;
    gap: 12px;
  }
  .tour-team-view,
  .tour-reply-view,
  .tour-insights-view {
    padding: 26px 18px;
  }
  .tour-teammate {
    width: 64px;
    padding: 14px 8px;
  }
  .tour-branch {
    width: calc(100% - 64px);
  }
  .tour-shortcuts {
    gap: 6px;
  }
  .tour-shortcuts > span {
    padding: 10px 9px;
    font-size: var(--text-sm);
  }
  .tour-shortcuts > span:last-child {
    display: none;
  }
  .tour-reply-draft {
    padding: 18px;
  }
  .tour-reply-draft > p {
    font-size: var(--text-md);
  }
  .tour-stats {
    gap: 20px;
  }
  .tour-stats strong {
    font-size: var(--text-lg);
  }
  .tour-stat-icon {
    display: none;
  }
  .tour-bars {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tour-feature {
    transition: none;
  }
}
