/* Slide-over panels */

.slide-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(var(--panel-w), 100vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 40;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-base);
  overflow: hidden;
  pointer-events: none;
}

.slide-panel.open {
  transform: translateX(0);
  pointer-events: auto;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.panel-header h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.panel-close {
  width: 32px;
  height: 32px;
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  scrollbar-width: thin;
}

.panel-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.panel-section h3 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .slide-panel {
    width: 100vw;
  }
}
