.editor-tutorial-launch {
  width: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0;
  border-radius: 0.46rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.editor-tutorial-root {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
}

.editor-tutorial-root.hidden {
  display: none;
}

.editor-tutorial-blocker {
  position: fixed;
  inset: 0;
  z-index: 1;
  border: 0;
  border-radius: 0;
  background: transparent;
  pointer-events: auto;
  cursor: default;
  transition: background-color 180ms ease;
}

.editor-tutorial-root.is-centered .editor-tutorial-blocker {
  background: rgba(40, 31, 25, 0.62);
  backdrop-filter: blur(1.5px);
}

.editor-tutorial-spotlight {
  position: fixed;
  z-index: 2;
  display: block;
  border: 2px solid rgba(222, 103, 43, 0.96);
  border-radius: 0.62rem;
  background: rgba(255, 151, 88, 0.035);
  box-shadow:
    0 0 0 9999px rgba(40, 31, 25, 0.62),
    0 0 0 5px rgba(232, 117, 43, 0.14),
    0 8px 26px rgba(40, 31, 25, 0.16);
  pointer-events: none;
  transition:
    left 190ms cubic-bezier(0.22, 1, 0.36, 1),
    top 190ms cubic-bezier(0.22, 1, 0.36, 1),
    width 190ms cubic-bezier(0.22, 1, 0.36, 1),
    height 190ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 140ms ease;
}

.editor-tutorial-root.is-centered .editor-tutorial-spotlight {
  opacity: 0;
}

.editor-tutorial-card {
  position: fixed;
  z-index: 3;
  width: min(22rem, calc(100vw - 2rem));
  max-height: min(32rem, calc(100dvh - 2rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(126, 99, 78, 0.2);
  border-radius: 0.72rem;
  background: rgba(255, 252, 248, 0.985);
  box-shadow: 0 20px 48px rgba(48, 34, 24, 0.24);
  color: #302922;
  pointer-events: auto;
}

.editor-tutorial-card__topline {
  height: 3px;
  flex: 0 0 auto;
  background: linear-gradient(90deg, #e8752b, #f2a16d 64%, transparent);
}

.editor-tutorial-card__body {
  min-height: 0;
  padding: 0.9rem 0.95rem 0.72rem;
  overflow-x: hidden;
  overflow-y: auto;
}

.editor-tutorial-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}

.editor-tutorial-card__eyebrow {
  margin: 0 0 0.2rem;
  color: #bd6336;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.editor-tutorial-card__title {
  margin: 0;
  font-family: "Noto Serif SC", "Source Han Serif", "Songti SC", serif;
  font-size: 1.06rem;
  line-height: 1.3;
}

.editor-tutorial-card__close {
  width: 1.7rem;
  min-width: 1.7rem;
  min-height: 1.7rem;
  padding: 0;
  border: 0;
  border-radius: 0.38rem;
  background: rgba(126, 99, 78, 0.08);
  color: #7d7166;
  box-shadow: none;
  font-size: 1rem;
  line-height: 1;
}

.editor-tutorial-card__description {
  margin: 0.68rem 0 0;
  color: #51483f;
  font-size: 0.8rem;
  line-height: 1.65;
}

.editor-tutorial-card__tip {
  margin: 0.62rem 0 0;
  padding: 0.52rem 0.6rem;
  border-left: 3px solid rgba(232, 117, 43, 0.66);
  border-radius: 0.28rem;
  background: rgba(232, 117, 43, 0.075);
  color: #7a5a48;
  font-size: 0.7rem;
  line-height: 1.48;
}

.editor-tutorial-card__footer {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.48rem;
  padding: 0.62rem 0.72rem;
  border-top: 1px solid rgba(126, 99, 78, 0.13);
  background: rgba(250, 246, 241, 0.98);
}

.editor-tutorial-card__progress {
  min-width: 0;
  display: grid;
  gap: 0.24rem;
  text-align: center;
}

.editor-tutorial-card__progress-text {
  color: #8a7d72;
  font-size: 0.62rem;
  line-height: 1;
}

.editor-tutorial-card__progress-track {
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(126, 99, 78, 0.13);
}

.editor-tutorial-card__progress-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #d97845;
  transition: width 180ms ease;
}

.editor-tutorial-card__button {
  min-height: 2rem;
  padding: 0.4rem 0.62rem;
  border-radius: 0.46rem;
  font-size: 0.7rem;
  white-space: nowrap;
}

.editor-tutorial-card__button--primary {
  border-color: rgba(180, 83, 35, 0.34);
  background: linear-gradient(180deg, #d9875d, #c96f43);
  color: #fffaf7;
}

.editor-tutorial-card__button--primary:hover {
  background: linear-gradient(180deg, #cf7b51, #bb6239);
  color: #fff;
}

.editor-tutorial-card__skip {
  min-height: auto;
  padding: 0.18rem 0.28rem;
  border: 0;
  background: transparent;
  color: #8a7d72;
  box-shadow: none;
  font-size: 0.64rem;
}

body.is-exporting .editor-tutorial-root,
body.is-export-preview .editor-tutorial-root,
body.editor-export-renderer .editor-tutorial-root {
  display: none !important;
}

body.is-tutorial-active {
  overscroll-behavior: none;
}

@media (max-width: 980px) {
  .editor-tutorial-launch {
    width: 1.86rem;
    min-width: 1.86rem;
    min-height: 1.86rem;
    border-radius: 0.42rem;
    font-size: 0.68rem;
  }

  .editor-tutorial-card {
    left: 0.5rem !important;
    right: 0.5rem;
    bottom: calc(4.72rem + env(safe-area-inset-bottom));
    top: auto !important;
    width: auto;
    max-height: min(44dvh, 23rem);
    border-radius: 0.58rem;
  }

  .editor-tutorial-card__body {
    padding: 0.72rem 0.76rem 0.58rem;
  }

  .editor-tutorial-card__title {
    font-size: 0.94rem;
  }

  .editor-tutorial-card__description {
    margin-top: 0.48rem;
    font-size: 0.74rem;
    line-height: 1.52;
  }

  .editor-tutorial-card__tip {
    margin-top: 0.48rem;
    padding: 0.42rem 0.5rem;
    font-size: 0.65rem;
  }

  .editor-tutorial-card__footer {
    gap: 0.34rem;
    padding: 0.5rem 0.56rem;
  }

  .editor-tutorial-card__button {
    min-height: 1.86rem;
    padding: 0.34rem 0.5rem;
    font-size: 0.66rem;
  }

  .editor-tutorial-card__skip {
    min-height: auto;
  }

  .editor-tutorial-spotlight {
    border-radius: 0.46rem;
  }
}

@media (max-width: 360px) {
  .editor-tutorial-card {
    bottom: calc(4.62rem + env(safe-area-inset-bottom));
    max-height: min(47dvh, 21rem);
  }

  .editor-tutorial-card__progress-text {
    font-size: 0.56rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .editor-tutorial-spotlight,
  .editor-tutorial-card__progress-bar,
  .editor-tutorial-blocker {
    transition: none;
  }
}