/* Lazy DM Sidebar — Issue #358 */
.lazy-dm-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--surface2);
  z-index: 8000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.lazy-dm-sidebar.visible {
  transform: translateX(0);
}

.lazy-dm-header {
  padding: 1rem;
  border-bottom: 1px solid var(--surface2);
}

.lazy-dm-title {
  font-family: Cinzel, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 0.2rem;
}

.lazy-dm-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.lazy-dm-mode-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.lazy-dm-mode-label {
  color: var(--muted);
}

.lazy-dm-mode-btn {
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--surface3);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.15s;
}

.lazy-dm-mode-btn:hover {
  background: var(--surface2);
}

.lazy-dm-mode-btn.active {
  background: var(--amber);
  color: var(--text-on-color);
  border-color: var(--amber);
}

.lazy-dm-progress {
  padding: 0.8rem 1rem;
}

.lazy-dm-progress-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--surface2);
  overflow: hidden;
  margin-bottom: 0.3rem;
}

.lazy-dm-progress-fill {
  height: 100%;
  background: var(--amber);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.lazy-dm-progress-text {
  font-size: 0.8rem;
  color: var(--muted);
}

.lazy-dm-steps {
  flex: 1;
  overflow-y: auto;
  padding: 0 0.5rem;
}

.lazy-dm-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  color: var(--text);
}

.lazy-dm-step:hover {
  background: var(--surface2);
}

.lazy-dm-step.active {
  border-left: 3px solid var(--amber);
  padding-left: calc(0.5rem - 3px);
}

.lazy-dm-step.done {
  opacity: 0.6;
}

.lazy-dm-step-check {
  font-size: 1rem;
  min-width: 1.2rem;
  text-align: center;
}

.lazy-dm-step.done .lazy-dm-step-check {
  color: var(--amber);
}

.lazy-dm-step-content {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.3;
}

.lazy-dm-step-num {
  font-weight: 600;
}

.lazy-dm-step-arrow {
  color: var(--muted);
  margin: 0 0.2rem;
}

.lazy-dm-step-tab {
  color: var(--amber);
  font-size: 0.8rem;
}

.lazy-dm-mark-btn {
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--surface3);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.7rem;
  white-space: nowrap;
  transition: all 0.15s;
}

.lazy-dm-mark-btn:hover {
  background: var(--surface2);
  color: var(--text);
}

.lazy-dm-footer {
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--surface2);
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
}

.lazy-dm-pin-btn,
.lazy-dm-hide-btn {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--surface3);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.15s;
}

.lazy-dm-pin-btn:hover,
.lazy-dm-hide-btn:hover {
  background: var(--surface2);
}

@media (max-width: 600px) {
  .lazy-dm-sidebar {
    width: 100%;
    height: 60vh;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-left: none;
    border-top: 1px solid var(--surface2);
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
  }

  .lazy-dm-sidebar.visible {
    transform: translateY(0);
  }

  .lazy-dm-sidebar::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--surface3);
    border-radius: 2px;
    margin: 8px auto;
  }
}
