.tutorial-widget {
  padding: 0 16px 24px;
  flex-shrink: 0;
}

.tutorial-separator {
  border-top: 1px solid var(--color-border, #e0e0e0);
  margin-bottom: 24px;
}

.tutorial-section-title {
  font-family: var(--font-body, 'Playfair Display', serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary, #1a1a1a);
  margin-bottom: 16px;
}

.tutorial-card-stack {
  position: relative;
  margin-bottom: 36px;
  padding-bottom: 10px;
}

.tutorial-card-stack::before,
.tutorial-card-stack::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0 0 12px 12px;
  border: 1px solid var(--color-border, #e0e0e0);
  border-top: none;
  background: var(--color-surface, #fff);
}

.tutorial-card-stack::before {
  bottom: 2px;
  width: calc(100% - 16px);
  height: 10px;
  z-index: 1;
}

.tutorial-card-stack::after {
  bottom: -5px;
  width: calc(100% - 30px);
  height: 10px;
  z-index: 0;
}

.tutorial-card {
  position: relative;
  z-index: 2;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.tutorial-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f5f5f5;
  cursor: pointer;
}

.tutorial-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tutorial-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.tutorial-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tutorial-card-body {
  padding: 14px 16px 16px;
}

.tutorial-step-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.tutorial-step-label {
  font-family: var(--font-body, 'Roboto', sans-serif);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary, #666);
  background: var(--color-neutral-100, #f0f0f0);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.tutorial-step-title {
  font-family: var(--font-body, 'Roboto', sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary, #1a1a1a);
}

.tutorial-step-desc {
  font-family: var(--font-body, 'Roboto', sans-serif);
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-secondary, #555);
  margin: 0 0 16px;
}

.tutorial-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tutorial-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body, 'Roboto', sans-serif);
  font-size: 15px;
  padding: 4px 0;
}

.tutorial-btn--skip {
  color: var(--color-text-secondary, #666);
  font-weight: 400;
}

.tutorial-btn--skip:hover {
  color: var(--color-text-primary, #1a1a1a);
}

.tutorial-btn--next {
  color: var(--color-text-primary, #1a1a1a);
  font-weight: 700;
}

.tutorial-btn--next:hover {
  opacity: 0.7;
}

.tutorial-progress {
  margin-top: 0;
  position: relative;
}

.tutorial-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.tutorial-progress-title {
  font-family: var(--font-body, 'Roboto', sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary, #1a1a1a);
}

.tutorial-progress-count {
  font-family: var(--font-body, 'Roboto', sans-serif);
  font-size: 13px;
  color: var(--color-text-secondary, #666);
}

.tutorial-progress-bar {
  height: 6px;
  background: var(--color-neutral-100, #e8e8e8);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 20px;
}

.tutorial-progress-fill {
  height: 100%;
  background: var(--color-text-primary, #1a1a1a);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.tutorial-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.tutorial-step-list::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--color-surface, #fff));
  pointer-events: none;
}

.tutorial-step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.tutorial-step-number {
  font-family: var(--font-body, 'Roboto', sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary, #888);
  min-width: 18px;
  text-align: center;
}

.tutorial-step-name {
  font-family: var(--font-body, 'Roboto', sans-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary, #1a1a1a);
  flex: 1;
}

.tutorial-step-indicator {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.side-nav.collapsed .tutorial-widget {
  display: none;
}

@media (max-width: 768px) {
  .tutorial-widget {
    padding: 0 12px 16px;
  }
}
