.standalone-tutorial-page #panel-tutorial-page {
  position: relative !important;
  inset: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto !important;
  display: block !important;
}

.tutorial-scope .tutorial-page-card > .inner {
  padding: 18px;
}

.tutorial-scope .tutorial-panel {
  display: none;
}

.tutorial-scope .tutorial-panel.is-current {
  display: block;
}

.tutorial-scope .tutorial-cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}

.tutorial-scope .tutorial-card {
  border: 1px solid var(--glass-stroke);
  border-radius: 18px;
  background: color-mix(in oklab, var(--surface) 94%, transparent);
  box-shadow: 0 10px 24px -20px rgba(15, 23, 42, .18);
  overflow: hidden;
}

html[data-theme="dark"] .tutorial-scope .tutorial-card {
  background: color-mix(in oklab, var(--surface) 94%, transparent);
  border-color: var(--glass-stroke);
  box-shadow: 0 10px 24px -20px rgba(2, 6, 23, .42);
}

.tutorial-scope .tutorial-card .inner {
  height: 100%;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 16px;
}

.tutorial-scope .tutorial-icon {
  width: 110px;
  height: 110px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in oklab, var(--primary) 18%, var(--glass-stroke));
  background: color-mix(in oklab, var(--surface) 96%, var(--primary) 4%);
  flex: 0 0 auto;
}

.tutorial-scope .tutorial-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

html[data-theme="dark"] .tutorial-scope .tutorial-icon img {
  filter: invert(1) brightness(1.12) contrast(1.05);
}

.tutorial-scope .tutorial-title {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.2;
  font-weight: 700;
}

.tutorial-scope .tutorial-desc {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  min-height: 0 !important;
  flex: 0 0 auto;
}

.tutorial-scope .tutorial-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: auto;
  padding-top: 0;
}

.tutorial-scope .tutorial-actions .btn-chip {
  width: 100%;
  max-width: 220px;
  justify-self: center;
}

.tutorial-scope .btn-chip,
.tutorial-scope .btn-chip:link,
.tutorial-scope .btn-chip:visited,
.tutorial-scope .video-switch-btn,
.tutorial-scope .video-back-btn {
  appearance: none;
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid color-mix(in oklab, var(--primary) 24%, var(--glass-stroke));
  background: color-mix(in oklab, var(--surface) 97%, white 3%);
  color: var(--fg);
  text-decoration: none;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  box-shadow: 0 12px 24px -22px rgba(15, 23, 42, .24);
  transition: transform var(--anim), background var(--anim), border-color var(--anim), box-shadow var(--anim), color var(--anim);
}

.tutorial-scope .btn-chip:hover,
.tutorial-scope .video-switch-btn:hover,
.tutorial-scope .video-back-btn:hover {
  transform: translateY(-1px);
  background: color-mix(in oklab, var(--surface) 94%, var(--primary) 6%);
  border-color: color-mix(in oklab, var(--primary) 30%, var(--glass-stroke));
  box-shadow: 0 16px 28px -22px rgba(15, 23, 42, .28);
}

.tutorial-scope .btn-chip.is-active,
.tutorial-scope .video-switch-btn.is-active {
  background: color-mix(in oklab, var(--surface) 97%, white 3%);
  border-color: color-mix(in oklab, var(--primary) 24%, var(--glass-stroke));
  color: var(--fg);
  box-shadow: 0 12px 24px -22px rgba(15, 23, 42, .24);
}

html[data-theme="dark"] .tutorial-scope .btn-chip,
html[data-theme="dark"] .tutorial-scope .btn-chip:link,
html[data-theme="dark"] .tutorial-scope .btn-chip:visited,
html[data-theme="dark"] .tutorial-scope .video-switch-btn,
html[data-theme="dark"] .tutorial-scope .video-back-btn {
  background: color-mix(in oklab, var(--surface) 97%, white 3%);
  color: var(--fg);
  border-color: color-mix(in oklab, var(--primary) 24%, var(--glass-stroke));
  box-shadow: 0 12px 24px -22px rgba(2, 6, 23, .56);
}

html[data-theme="dark"] .tutorial-scope .btn-chip:hover,
html[data-theme="dark"] .tutorial-scope .video-switch-btn:hover,
html[data-theme="dark"] .tutorial-scope .video-back-btn:hover {
  background: color-mix(in oklab, var(--surface) 94%, var(--primary) 6%);
  border-color: color-mix(in oklab, var(--primary) 30%, var(--glass-stroke));
}

html[data-theme="dark"] .tutorial-scope .btn-chip.is-active,
html[data-theme="dark"] .tutorial-scope .video-switch-btn.is-active {
  background: color-mix(in oklab, var(--surface) 97%, white 3%);
  color: var(--fg);
  border-color: color-mix(in oklab, var(--primary) 24%, var(--glass-stroke));
  box-shadow: 0 12px 24px -22px rgba(2, 6, 23, .56);
}

.tutorial-scope .tutorial-notice {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, .18);
  background: color-mix(in oklab, var(--surface) 90%, var(--primary) 6%);
}

.tutorial-scope .tutorial-notice h4 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
}

.tutorial-scope .tutorial-notice-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tutorial-scope .tutorial-notice-item {
  border-radius: 16px;
  border: 1px solid var(--glass-stroke);
  background: color-mix(in oklab, var(--surface) 96%, white 4%);
  padding: 16px;
}

.tutorial-scope .tutorial-notice-item h5 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
}

.tutorial-scope .tutorial-notice-item ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.tutorial-scope .video-panel-head {
  margin-bottom: 14px;
}

.tutorial-scope .video-panel-head h3 {
  margin: 0;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.2;
}

.tutorial-scope .video-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(320px, 430px) minmax(300px, 1fr);
  align-items: start;
}

.tutorial-scope .video-summary {
  display: grid;
  gap: 14px;
  align-content: start;
}

.tutorial-scope .video-switch-box,
.tutorial-scope .video-back-box,
.tutorial-scope .video-download-box,
.tutorial-scope .video-text-box {
  border: 1px solid var(--glass-stroke);
  border-radius: 18px;
  background: color-mix(in oklab, var(--surface) 94%, transparent);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.tutorial-scope .video-switch-box h4,
.tutorial-scope .video-back-box h4,
.tutorial-scope .video-download-box h4,
.tutorial-scope .video-text-box h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.tutorial-scope .video-switch-list,
.tutorial-scope .video-download-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  justify-items: stretch;
}

.tutorial-scope .video-download-actions .btn-chip,
.tutorial-scope .video-switch-list .video-switch-btn {
  width: 100%;
  max-width: none;
  min-width: 0;
  white-space: nowrap;
}

.tutorial-scope .video-player-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.tutorial-scope .video-player-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--glass-stroke);
  box-shadow: 0 20px 42px -28px rgba(0, 0, 0, .52);
}

.tutorial-scope .video-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: cover;
}

.tutorial-scope .video-player-card.playing .video-player {
  object-fit: contain;
}

.tutorial-scope .video-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(99, 102, 241, .20), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, .42));
  cursor: pointer;
  transition: opacity .18s ease;
}

.tutorial-scope .video-player-card.playing .video-overlay {
  opacity: 0;
  pointer-events: none;
}

.tutorial-scope .video-play-stack {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.tutorial-scope .video-play-btn {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .26);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 34px -24px rgba(0, 0, 0, .48);
}

.tutorial-scope .video-play-btn::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
  border-left: 22px solid rgba(255, 255, 255, .96);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}

.tutorial-scope .video-overlay-title {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .01em;
}

.tutorial-scope .video-overlay-desc {
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  text-align: center;
}

.tutorial-scope .video-text-steps {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.tutorial-scope .video-text-steps li + li {
  margin-top: 6px;
}

@media (max-width: 1180px) {
  .tutorial-scope .video-layout {
    grid-template-columns: 1fr;
  }

  .tutorial-scope .video-summary {
    order: 2;
  }

  .tutorial-scope .video-player-wrap {
    order: 1;
    justify-content: center;
  }

  .tutorial-scope .video-player-card {
    max-width: 340px;
  }
}

@media (max-width: 768px) {
  .tutorial-scope .tutorial-page-card > .inner {
    padding: 14px;
  }

  .tutorial-scope .tutorial-icon {
    width: 92px;
    height: 92px;
    border-radius: 24px;
  }

  .tutorial-scope .tutorial-icon img {
    width: 46px;
    height: 46px;
  }

  .tutorial-scope .video-layout {
    gap: 14px;
  }

  .tutorial-scope .video-player-card {
    max-width: 320px;
    border-radius: 20px;
  }

  .tutorial-scope .video-switch-box,
  .tutorial-scope .video-back-box,
  .tutorial-scope .video-download-box,
  .tutorial-scope .video-text-box {
    padding: 14px;
  }
}

@media (max-width: 520px) {
  .tutorial-scope .video-switch-list,
  .tutorial-scope .video-download-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .tutorial-scope .btn-chip,
  .tutorial-scope .video-switch-btn,
  .tutorial-scope .video-back-btn {
    min-height: 46px;
    padding: 0 12px;
    font-size: 14px;
  }
}
