.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.panel {
  width: 420px;
  max-width: 90vw;
  max-height: 80vh;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-popup);
  display: flex;
  flex-direction: column;
  transition: width 0.15s ease;
}

.panelWide {
  width: 560px;
}

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

.header h2 {
  margin: 0;
  font-size: var(--font-xl);
  font-weight: 600;
}

.close {
  background: none;
  border: none;
  color: var(--fg-secondary);
  font-size: var(--font-2xl);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-md);
}

.close:hover {
  background: var(--bg-highlight);
  color: var(--fg-primary);
}

.backButton {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--fg-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-md);
  margin-right: 4px;
}

.backButton:hover {
  background: var(--bg-highlight);
  color: var(--fg-primary);
}

.content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.menuNote {
  margin: 0;
  font-size: var(--font-sm);
  color: var(--fg-muted);
}

.section {
  margin-bottom: 20px;
}

.sectionTitle {
  font-size: var(--font-sm);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.desc {
  font-size: var(--font-base);
  color: var(--fg-secondary);
  line-height: 1.5;
  margin: 0;
}

.linkList {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.linkButton {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--fg-secondary);
  font-size: var(--font-base);
  font-family: var(--font-ui);
  cursor: pointer;
  text-align: left;
  transition: background 0.1s, color 0.1s;
}

.linkButton:hover {
  background: var(--bg-tertiary);
  color: var(--fg-primary);
}

.linkButton svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.linkButton:hover svg {
  opacity: 1;
}
